From 5ab0fae5977d188bca867b568da7feb31fa61adc Mon Sep 17 00:00:00 2001 From: "Luis J. Salvatierra" Date: Mon, 1 Jul 2024 10:22:59 +0200 Subject: [PATCH] [11.0][FIX] l10n_es_aeat: Manages Nothern Ireland intracommunity code 'XI' --- l10n_es_aeat/__manifest__.py | 2 +- l10n_es_aeat/models/res_partner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/l10n_es_aeat/__manifest__.py b/l10n_es_aeat/__manifest__.py index 6d20dabcdc..1b33fa1c8c 100644 --- a/l10n_es_aeat/__manifest__.py +++ b/l10n_es_aeat/__manifest__.py @@ -11,7 +11,7 @@ { 'name': "AEAT Base", 'summary': "Modulo base para declaraciones de la AEAT", - 'version': "11.0.3.1.0", + 'version': "11.0.3.1.1", 'author': "Pexego," "Acysos," "AvanzOSC," diff --git a/l10n_es_aeat/models/res_partner.py b/l10n_es_aeat/models/res_partner.py index f4cd7f48d6..775c760346 100644 --- a/l10n_es_aeat/models/res_partner.py +++ b/l10n_es_aeat/models/res_partner.py @@ -29,7 +29,7 @@ def _get_aeat_europe_codes(self): if not europe: europe = self.env["res.country.group"].search( [('name', '=', 'Europe')], limit=1) - return europe.country_ids.mapped('code') + return europe.country_ids.mapped('code') + ["XI"] # Nothern Ireland @ormcache('self.vat, self.country_id') def _parse_aeat_vat_info(self):