[FIX] account, automatic reconciliation wizard: another great fix regarding previous commit
bzr revid: qdp-launchpad@tinyerp.com-20100923151050-hvcsrk3vlutz9706
This commit is contained in:
parent
81a6bd02b0
commit
c3cbb6649c
|
@ -157,7 +157,7 @@ class account_automatic_reconcile(osv.osv_memory):
|
|||
query = """SELECT partner_id FROM account_move_line WHERE account_id=%s AND reconcile_id IS NULL
|
||||
AND state <> 'draft' GROUP BY partner_id
|
||||
HAVING ABS(SUM(debit-credit)) < %s AND count(*)>0"""
|
||||
params += max_amount
|
||||
params += (max_amount,)
|
||||
# reconcile automatically all transactions from partners whose balance is 0
|
||||
cr.execute(query, params)
|
||||
partner_ids = [id for (id,) in cr.fetchall()]
|
||||
|
|
Loading…
Reference in New Issue