Fix payment with write-off for issue1703
With changeset d6b96d13a3e6, the field payment_lines is reloaded after the call to pay_invoice.
This commit is contained in:
1 parent
6a6d8716c6
commit
b8ebf6e09c
1 file changed
-2
@@ -2315,8 +2315,6 @@ class PayInvoice(Wizard):
|
||||
line_ids = data['form']['lines'][0][1] + \
|
||||
[x.id for x in invoice.payment_lines
|
||||
if not x.reconciliation]
|
||||
if line_id:
|
||||
line_ids += [line_id]
|
||||
if line_ids:
|
||||
move_line_obj.reconcile(line_ids,
|
||||
journal_id=data['form']['journal_writeoff'],
|
||||
|
||||
Reference in new issue
Block a user