[IMP]Account:analytic line adding product doesnt add the unit of measure
bzr revid: ron@tinyerp.com-20110221125034-kke587zoskk27gzl
This commit is contained in:
parent
6c9834f0d5
commit
2bde63a85b
|
@ -80,7 +80,7 @@ class account_analytic_line(osv.osv):
|
|||
j_id = analytic_journal_obj.browse(cr, uid, journal_id, context=context)
|
||||
prod = product_obj.browse(cr, uid, prod_id, context=context)
|
||||
result = 0.0
|
||||
if prod_id or not unit:
|
||||
if prod_id:
|
||||
unit = prod.uom_id.id
|
||||
if j_id.type == 'purchase':
|
||||
unit = prod.uom_po_id.id
|
||||
|
|
Loading…
Reference in New Issue