From dbd42d12c5edc8dfdea78a4892c49648e92b56e1 Mon Sep 17 00:00:00 2001 From: Quentin De Paoli Date: Wed, 16 Dec 2009 09:09:34 +0100 Subject: [PATCH] [FIX] account: partial reconciliation check was wrongly computed bzr revid: qdp@cyan-20091216080934-0juk73m2ztscyp96 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index dd85bcf4d87..0b6a50b4148 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1091,8 +1091,8 @@ class account_move_reconcile(osv.osv): 'name': lambda self,cr,uid,ctx={}: self.pool.get('ir.sequence').get(cr, uid, 'account.reconcile') or '/', } def reconcile_partial_check(self, cr, uid, ids, type='auto', context={}): + total = 0.0 for rec in self.browse(cr, uid, ids, context): - total = 0.0 for line in rec.line_partial_ids: total += (line.debit or 0.0) - (line.credit or 0.0) if not total: