Format the party's identifier codes

Closes #14485
This commit is contained in:
Cédric Krier
2026-01-16 16:56:47 +01:00
parent 86d2fdfe50
commit b0ff152120
17 changed files with 115 additions and 36 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class Invoice(metaclass=PoolMeta):
return (identifier
and (identifier.type == 'be_vat'
or (identifier.type == 'eu_vat'
and identifier.code.startswith('BE'))))
and identifier.code_compact.startswith('BE'))))
if (self.invoice_date
and self.invoice_date.year >= 2026
and is_be_vat(self.tax_identifier)