From 554965b74eb8a5924cbeb31d40951e2982fd6366 Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 31 Jul 2007 14:09:06 +0000 Subject: [PATCH] base, account: fix is_zero and pay_and_reconcile test bzr revid: ced-06efe91474d5d63dc4404b5ea35e6b271167ee5f --- 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 7f7cf1475c8..09eda1fca79 100644 --- a/bin/addons/base/res/res_currency.py +++ b/bin/addons/base/res/res_currency.py @@ -72,7 +72,7 @@ class res_currency(osv.osv): return round(amount / currency.rounding) * currency.rounding def is_zero(self, cr, uid, currency, amount): - return self.round(cr, uid, currency, amount) < currency.rounding + return abs(self.round(cr, uid, currency, amount)) < currency.rounding def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}): if not from_currency_id: