X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp%2Faddons%2Fbase%2Fir%2Fir_qweb.py;fp=openerp%2Faddons%2Fbase%2Fir%2Fir_qweb.py;h=26045a388dea8e355587420de5e77e86587454df;hb=fcd06145dda957a83e687fd033ff294c407da5f4;hp=fdbdbea23e82bc50df80db62c79f1a2dc895316d;hpb=d9610efd979c974e540353716f8d0b9ecdb9d952;p=odoo%2Fodoo.git diff --git a/openerp/addons/base/ir/ir_qweb.py b/openerp/addons/base/ir/ir_qweb.py index fdbdbea..26045a3 100644 --- a/openerp/addons/base/ir/ir_qweb.py +++ b/openerp/addons/base/ir/ir_qweb.py @@ -822,7 +822,7 @@ class MonetaryConverter(osv.AbstractModel): # The log10 of the rounding should be the number of digits involved if # negative, if positive clamp to 0 digits and call it a day. # nb: int() ~ floor(), we want nearest rounding instead - precision = int(round(math.log10(display_currency.rounding))) + precision = int(math.floor(math.log10(display_currency.rounding))) fmt = "%.{0}f".format(-precision if precision < 0 else 0) from_amount = record[field_name]