From 0bec8a95fc94f487b5b6ef66a8c4e981152a93bd Mon Sep 17 00:00:00 2001 From: "VRA(OpenERP)" <> Date: Mon, 21 Dec 2009 17:01:16 +0530 Subject: [PATCH] [FIX] Currency : Rounding improved bzr revid: jvo@tinyerp.com-20091221113116-a8kf0v96ln9s5dgw --- bin/addons/base/res/res_currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/res/res_currency.py b/bin/addons/base/res/res_currency.py index 7033abe7ec6..d8f58b85130 100644 --- a/bin/addons/base/res/res_currency.py +++ b/bin/addons/base/res/res_currency.py @@ -67,7 +67,7 @@ class res_currency(osv.osv): if currency.rounding == 0: return 0.0 else: - return round(amount / currency.rounding) * currency.rounding + return round(amount / currency.rounding,6) * currency.rounding def is_zero(self, cr, uid, currency, amount): return abs(self.round(cr, uid, currency, amount)) < currency.rounding