base, account: fix is_zero and pay_and_reconcile test

bzr revid: ced-06efe91474d5d63dc4404b5ea35e6b271167ee5f
This commit is contained in:
ced
2007-07-31 14:09:06 +00:00
parent 3d1d803690
commit 554965b74e
+1 -1
View File
@@ -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: