Cast excluded from sii as boolean before grouping

The value may be None which should be grouped with false values

Closes #13734
This commit is contained in:
Sergi Almacellas Abellana committed 2024-12-05 15:54:50 +01:00
1 parent 77dd7b3771
commit 659f25e14f
1 file changed
+1 -1
+1 -1
View File
@@ -482,7 +482,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),
)