[IMP] mrp: reset default product rounding with 0 in bom
bzr revid: hmo@tinyerp.com-20100724113124-d0afp96njz71pbc2
This commit is contained in:
parent
2e5104e269
commit
f429080dc5
|
@ -208,7 +208,7 @@ class mrp_bom(osv.osv):
|
|||
'active': lambda *a: 1,
|
||||
'product_efficiency': lambda *a: 1.0,
|
||||
'product_qty': lambda *a: 1.0,
|
||||
'product_rounding': lambda *a: 1.0,
|
||||
'product_rounding': lambda *a: 0.0,
|
||||
'type': lambda *a: 'normal',
|
||||
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.bom', context=c),
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ class report_custom(report_rml):
|
|||
}
|
||||
xml_tmp = ''
|
||||
for sub_bom in (sub_boms and sub_boms[0]) or [parent_bom]:
|
||||
txt, sum, sum_strd = process_bom(sub_bom, company_currency, factor=1/bom.product_qty)
|
||||
txt, sum, sum_strd = process_bom(sub_bom, company_currency)
|
||||
xml_tmp += txt
|
||||
total += sum
|
||||
total_strd += sum_strd
|
||||
|
|
Loading…
Reference in New Issue