From b8ebf6e09c64458b3d2506024d1cf519d8e0f9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 1 Oct 2010 23:27:31 +0200 Subject: [PATCH] Fix payment with write-off for issue1703 With changeset d6b96d13a3e6, the field payment_lines is reloaded after the call to pay_invoice. --- invoice.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/invoice.py b/invoice.py index 802fb96a71..dc621eb49d 100644 --- a/invoice.py +++ b/invoice.py @@ -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'],