← Back to team overview

openerp-india team mailing list archive

[Bug 1268085] Re: [7.0]Incorrect BOM explode in production

 

Fix on rev 9789
 http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/revision/9789

** Changed in: openobject-addons
       Status: New => Fix Released

-- 
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/1268085

Title:
  [7.0]Incorrect BOM explode in production

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  BOM explosion in production orders is incorrect.

  If you have a BOM with the following structure
  Product F: 333kg
  Components:
  Product A: 333 kg
  Product B: 33 Units
  Product C: 3330 Units

  If desired production order production of 100 kg of product F system
  calculates:

  Product A: 103.23 kg
  Product B: 33 Units
  Product C: 3330 Units

  The correct calculation would be
  Product A: 100 kg
  Product B: 9.90990991 Units can be rounded to 10 Units
  Product C: 990.990991 Units can be rounded to 991 Units

  If desired production order production of 500 kg of product F system
  calculates:

  Product A: 502.83 kg
  Product B: 66 Units
  Product C: 6660 Units

  The correct calculation would be
  Product A: 500 kg
  Product B: 49.54954955 Units can be rounded to 50
  Product C: 4954.954955 Units can be rounded to 4955

  We have identified the problem in mrp.py in method _bom_explode

         routing_obj = self.pool.get('mrp.routing')
         factor = factor / (bom.product_efficiency or 1.0)
         # in next line is the BUG
         max_rounding = max(bom.product_rounding, bom.product_uom.rounding) 
         factor = rounding(factor, max_rounding)
         if factor < max_rounding:
             factor = max_rounding

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


References