[FIX] mrp : Corrected Quantity Calculation when having different UoM in MO
lp bug: https://launchpad.net/bugs/709055 fixed bzr revid: ach@openerp.com-20110204090309-4i0jjr2tfszrcdni
This commit is contained in:
parent
5914731fb5
commit
1891a28934
|
@ -590,7 +590,7 @@ class mrp_production(osv.osv):
|
|||
if not bom_id:
|
||||
raise osv.except_osv(_('Error'), _("Couldn't find bill of material for product"))
|
||||
|
||||
factor = production.product_qty * production.product_uom.factor / bom_point.product_uom.factor
|
||||
factor = production.product_qty * production.product_uom.factor_inv / bom_point.product_uom.factor
|
||||
res = bom_obj._bom_explode(cr, uid, bom_point, factor / bom_point.product_qty, properties)
|
||||
results = res[0]
|
||||
results2 = res[1]
|
||||
|
|
Loading…
Reference in New Issue