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

        The Many2Many value must be a list of operations.

        issue8287
        review253391002
diffstat:

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

diffs (14 lines):

diff -r 930b4335bd4c -r 6d4a6498779f invoice.py
--- a/invoice.py        Tue Feb 19 21:55:57 2019 +0100
+++ b/invoice.py        Thu May 02 12:52:25 2019 +0200
@@ -1407,7 +1407,9 @@
                     to_remove.append(payment_line)
             if to_remove:
                 to_write.append([invoice])
-                to_write.append([('remove', to_remove)])
+                to_write.append({
+                        'payment_lines': [('remove', to_remove)],
+                        })
         if to_write:
             cls.write(*to_write)
 

Reply via email to