From ef5d8d53ac4caac2ea24ae93b3af7bc38f8e2107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 1 Aug 2024 23:26:49 +0200 Subject: [PATCH] Update tax cash only for invoices with payment lines modified Closes #13433 --- modules/account_tax_cash/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_tax_cash/account.py b/modules/account_tax_cash/account.py index 7876b9855a..8114e8d5b3 100644 --- a/modules/account_tax_cash/account.py +++ b/modules/account_tax_cash/account.py @@ -272,7 +272,7 @@ class Invoice(metaclass=PoolMeta): for records, values in zip(actions, actions): if 'payment_lines' in values: invoices.extend(records) - invoices = cls.browse(sum(args[0:None:2], [])) + invoices = cls.browse(invoices) cls._update_tax_cash_basis(invoices) @classmethod