From f48a5b156ab6b120508461b2f93dee63daae6995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 15 Mar 2026 16:18:06 +0100 Subject: [PATCH] Use compact identifier code for Spanish identifier code Since 06e183433933 the identifier code is formatted and not the compact code. --- modules/account_es/party.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account_es/party.py b/modules/account_es/party.py index 2435ece5fb..8250e5517d 100644 --- a/modules/account_es/party.py +++ b/modules/account_es/party.py @@ -32,8 +32,8 @@ class Identifier(metaclass=PoolMeta): def es_code(self): if self.type == 'eu_vat': - return self.code[2:] - return self.code + return self.code_compact[2:] + return self.code_compact def es_vat_type(self): country = self.es_country()