[MERGE][FIX] account: while refuding the invoice with payment term journal items are created wrongly with write-off account

bzr revid: dle@openerp.com-20140415100702-s13cuejf89gtlnhc
This commit is contained in:
Denis Ledoux 2014-04-15 12:07:02 +02:00
commit 998b290409
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class account_invoice_refund(osv.osv_memory):
to_reconcile_ids = {}
for line in movelines:
if line.account_id.id == inv.account_id.id:
to_reconcile_ids[line.account_id.id] = [line.id]
to_reconcile_ids.setdefault(line.account_id.id, []).append(line.id)
if line.reconcile_id:
line.reconcile_id.unlink()
wf_service.trg_validate(uid, 'account.invoice', \