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
+3 -3
View File
@@ -881,7 +881,7 @@ class Invoice(Model):
):
if identifier.text:
domain = [
('code', '=', identifier.text),
('code_compact', '=', identifier.text),
]
if schemeId := identifier.get('schemeID'):
if type := ISO6523.get(schemeId):
@@ -999,7 +999,7 @@ class Invoice(Model):
for identifier in party.identifiers:
if (identifier.type in tax_identifier_types
and identifier.iso_6523 == scheme_id
and identifier.code == value):
and identifier.code_compact == value):
return identifier
else:
if create and scheme_id in ISO6523:
@@ -1042,7 +1042,7 @@ class Invoice(Model):
):
if identifier.text:
domain = [
('code', '=', identifier.text),
('code_compact', '=', identifier.text),
]
if schemeId := identifier.get('schemeID'):
if type := ISO6523.get(schemeId):