[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:
parent
71a31da4b5
commit
4a5f76f7e6
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue