[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:
parent
d77fe9c185
commit
dfeeca1e8f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue