[FIX] account: partial reconciliation check was wrongly computed

bzr revid: qdp@cyan-20091216080934-0juk73m2ztscyp96
This commit is contained in:
Quentin De Paoli
2009-12-16 09:09:34 +01:00
parent 792725fac9
commit dbd42d12c5
+1 -1
View File
@@ -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: