[FIX] conformation of mrp(MO) shows error
lp bug: https://launchpad.net/bugs/1028264 fixed bzr revid: rmu@tinyerp.com-20120724100748-zfhwpxwm9en5iw7a
This commit is contained in:
parent
61f361bfee
commit
1f4ab62dc4
|
@ -819,7 +819,8 @@ class mrp_production(osv.osv):
|
|||
'ref': wc.code,
|
||||
'product_id': wc.product_id.id,
|
||||
'unit_amount': wc_line.hour,
|
||||
'product_uom_id': wc.product_id.uom_id.id
|
||||
'product_uom_id': wc.product_id.id and wc.product_id.uom_id.id or False
|
||||
|
||||
} )
|
||||
if wc.costs_journal_id and wc.costs_general_account_id:
|
||||
value = wc_line.cycle * wc.costs_cycle
|
||||
|
@ -835,7 +836,8 @@ class mrp_production(osv.osv):
|
|||
'ref': wc.code,
|
||||
'product_id': wc.product_id.id,
|
||||
'unit_amount': wc_line.cycle,
|
||||
'product_uom_id': wc.product_id.uom_id.id
|
||||
'product_uom_id': wc.product_id.id and wc.product_id.uom_id.id or False
|
||||
|
||||
} )
|
||||
return amount
|
||||
|
||||
|
|
Loading…
Reference in New Issue