[IMP]Account:analytic line adding product doesnt add the unit of measure

bzr revid: ron@tinyerp.com-20110221125034-kke587zoskk27gzl
This commit is contained in:
ron@tinyerp.com 2011-02-21 18:20:34 +05:30
parent 6c9834f0d5
commit 2bde63a85b
1 changed files with 1 additions and 1 deletions

View File

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