changeset 4ab89457d88f in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=4ab89457d88f
description:
        Use correct API to remove payment_lines

        The Many2Many value must be a list of operations.

        issue8287
        review277321002
diffstat:

 invoice.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 77b4173fe5ed -r 4ab89457d88f invoice.py
--- a/invoice.py        Wed May 01 18:05:23 2019 +0200
+++ b/invoice.py        Thu May 02 12:50:55 2019 +0200
@@ -1466,7 +1466,7 @@
             if to_remove:
                 to_write.append([invoice])
                 to_write.append({
-                        'payment_lines': ('remove', to_remove),
+                        'payment_lines': [('remove', to_remove)],
                         })
         if to_write:
             cls.write(*to_write)

Reply via email to