[IMP] mrp: reset default product rounding with 0 in bom

bzr revid: hmo@tinyerp.com-20100724113124-d0afp96njz71pbc2
This commit is contained in:
Harry (OpenERP) 2010-07-24 17:01:24 +05:30
parent 2e5104e269
commit f429080dc5
2 changed files with 2 additions and 2 deletions

View File

@ -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),
}

View File

@ -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