[FIX] account: fixed list_partners_to_reconcile() in order to return all partners and not the first one only

bzr revid: qdp-launchpad@openerp.com-20120924110450-q1k51qv0p2djumxk
This commit is contained in:
Quentin (OpenERP) 2012-09-24 13:04:50 +02:00
parent d77fe9c185
commit dfeeca1e8f
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ class account_move_line(osv.osv):
WHERE debit > 0 AND credit > 0
ORDER BY last_reconciliation_date""")
ids = cr.fetchall()
ids = len(ids) and list(ids[0]) or []
ids = len(ids) and [x[0] for x in ids] or []
return self.pool.get('res.partner').name_get(cr, uid, ids, context=context)
def reconcile_partial(self, cr, uid, ids, type='auto', context=None, writeoff_acc_id=False, writeoff_period_id=False, writeoff_journal_id=False):