From e3ec10cfa197f7df11b1e5928d8af98d2c4a236b Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 5 Dec 2024 15:54:50 +0100 Subject: [PATCH] Cast excluded from sii as boolean before grouping The value may be None which should be grouped with false values Closes #13734 (grafted from a03bfd30614754924f6122b53e17016853ec751c) --HG-- branch : 7.0 --- modules/account_es_sii/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_es_sii/account.py b/modules/account_es_sii/account.py index 24029ba727..c7a939922b 100644 --- a/modules/account_es_sii/account.py +++ b/modules/account_es_sii/account.py @@ -484,7 +484,7 @@ class InvoiceSII(ModelSQL, ModelView): 'Repercutida' if invoice.type == 'out' else 'Soportada')), ('sii_key', tax.es_sii_tax_key or ''), ('operation_key', tax.es_sii_operation_key or ''), - ('excluded', tax.es_exclude_from_sii), + ('excluded', bool(tax.es_exclude_from_sii)), ('product_key', product_type), )