[FIX] Product : Correcter pricelist calculation if base price set to 0

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

bzr revid: jvo@tinyerp.com-20110408140130-uc06lphwpp5xnd04
This commit is contained in:
Jay Vora (OpenERP) 2011-04-08 19:31:30 +05:30
parent 71a31da4b5
commit 4a5f76f7e6
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class product_pricelist(osv.osv):
product_obj.price_get(cr, uid, [product_id],
price_type.field,context=context)[product_id], round=False, context=context)
if price:
if price is not False:
price_limit = price
price = price * (1.0+(res['price_discount'] or 0.0))