Skip to content
Snippets Groups Projects
Commit 998b2904 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[MERGE][FIX] account: while refuding the invoice with payment term journal...

[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
parents a701934a 65caa331
Branches
Tags
No related merge requests found
......@@ -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', \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment