diff --git a/bin/addons/base/res/res_currency.py b/bin/addons/base/res/res_currency.py index 4a304108527..0e4faa68143 100644 --- a/bin/addons/base/res/res_currency.py +++ b/bin/addons/base/res/res_currency.py @@ -79,7 +79,9 @@ class res_currency(osv.osv): if currency.rounding == 0: return 0.0 else: - return round(amount / currency.rounding,6) * currency.rounding + # /!\ First member below must be rounded to full unit! + # Do not pass a rounding digits value to round() + return round(amount / currency.rounding) * currency.rounding def is_zero(self, cr, uid, currency, amount): return abs(self.round(cr, uid, currency, amount)) < currency.rounding