[FIX]product:Purchase Order price calculation wrong

lp bug: https://launchpad.net/bugs/728092 fixed

bzr revid: ron@tinyerp.com-20110307125008-pan2v3m9w7ea2t1r
This commit is contained in:
ron@tinyerp.com 2011-03-07 18:20:08 +05:30
parent 4c3c85a945
commit 185de3a01b
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ class product_pricelist(osv.osv):
price = res2['price']
else:
price_type = price_type_obj.browse(cr, uid, int(res['base']))
uom_price_already_computed = True
price = currency_obj.compute(cr, uid,
price_type.currency_id.id, res['currency_id'],
product_obj.price_get(cr, uid, [product_id],