Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / openerp / addons / base / ir / ir_qweb.py
index fdbdbea..26045a3 100644 (file)
@@ -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]