← Back to team overview

openerp-india team mailing list archive

[Bug 1036623] [NEW] product_variant_multi, bom_variant_multi report Product Cost Structure throws exception

 

Public bug reported:

I installed product_variant_multi, product_configurator,
product_configurator_variant, tree_node and bom_variant_multi. When I
select some product with defined BoM and call Product Cost Structure,
system throws following exception:

_bom_explode() takes at least 6 arguments (5 given)

(<type 'exceptions.TypeError'>, TypeError('_bom_explode() takes at least
6 arguments (5 given)',), <traceback object at 0xb30bee64>)

It is because predefined _bom_explode() function in
bom_variant_multi/bom_template.py. This function has 6 arguments.
Problem occurs when I run Product Cost Structure report. System calls
origin _bom_explode() function from mrp/report/price.py which has 5
arguments. Some advice how to fix this report, without unwanted impacts
on system ?

** Affects: openobject-addons
     Importance: Undecided
     Assignee: Sasa Kostadinovic (sasaguster)
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1036623

Title:
  product_variant_multi, bom_variant_multi report Product Cost Structure
  throws exception

Status in OpenERP Addons (modules):
  New

Bug description:
  I installed product_variant_multi, product_configurator,
  product_configurator_variant, tree_node and bom_variant_multi. When I
  select some product with defined BoM and call Product Cost Structure,
  system throws following exception:

  _bom_explode() takes at least 6 arguments (5 given)

  (<type 'exceptions.TypeError'>, TypeError('_bom_explode() takes at
  least 6 arguments (5 given)',), <traceback object at 0xb30bee64>)

  It is because predefined _bom_explode() function in
  bom_variant_multi/bom_template.py. This function has 6 arguments.
  Problem occurs when I run Product Cost Structure report. System calls
  origin _bom_explode() function from mrp/report/price.py which has 5
  arguments. Some advice how to fix this report, without unwanted
  impacts on system ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1036623/+subscriptions


Follow ups

References