From 7c2a8f4635894665a36a314d7432e25f779abe57 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 (grafted from 4c422519abe2de606f9c943c6e4565c125f312d9) --HG-- branch : 7.0 --- 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