From 4a5f76f7e66dce8e4c06a12a3e381946cf9fff54 Mon Sep 17 00:00:00 2001 From: "Jay Vora (OpenERP)" Date: Fri, 8 Apr 2011 19:31:30 +0530 Subject: [PATCH] [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 --- addons/product/pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index de8fd701492..ad04b056210 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -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))