From 76a6121fec968107b4582b568708fcce66a8beee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 2 May 2019 12:50:55 +0200 Subject: [PATCH] Use correct API to remove payment_lines The Many2Many value must be a list of operations. issue8287 review277321002 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 2ea4963525..968e6d26eb 100644 --- a/invoice.py +++ b/invoice.py @@ -1466,7 +1466,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin): 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)