From bc08263dca515a51b05de9211cddfd1e121ff485 Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 12 Jul 2007 15:31:07 +0000 Subject: [PATCH] account: add round to pay wizard for comparaison bzr revid: ced-8930837c93b21a205fa48f1ce9f22f10fd61075a --- addons/account/wizard/wizard_pay_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/wizard_pay_invoice.py b/addons/account/wizard/wizard_pay_invoice.py index d766dcbb78d..31b1274ca30 100644 --- a/addons/account/wizard/wizard_pay_invoice.py +++ b/addons/account/wizard/wizard_pay_invoice.py @@ -63,7 +63,7 @@ def _trans_reconcile(self, cr, uid, data, context): def _wo_check(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) invoice = pool.get('account.invoice').browse(cr, uid, data['id'], context) - if data['form']['amount'] == invoice.amount_total: + if round(data['form']['amount'], 2) == round(invoice.amount_total, 2): return 'reconcile' return 'addendum'