From c43c308c33de1a3704f5d3c666dacc1a066c8cb4 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 6 Mar 2014 20:09:06 +0100 Subject: [PATCH] [FIX] product: typo in previous commit "The only man who makes no mistakes is the man who never does anything. ~T.R." ;-) bzr revid: odo@openerp.com-20140306190906-k8wjr9urekpoy7ch --- addons/product/pricelist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 676ae33c66d..d4ed2567afc 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -295,7 +295,8 @@ class product_pricelist(osv.osv): if price is not False: price_limit = price price = price * (1.0+(res['price_discount'] or 0.0)) - price = tools.float_rouding(price, precision_rounding=res['price_round']) + if res['price_round']: + price = tools.float_round(price, precision_rounding=res['price_round']) price += (res['price_surcharge'] or 0.0) if res['price_min_margin']: price = max(price, price_limit+res['price_min_margin'])