We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36eda04 + 7e02a3a commit f55aa29Copy full SHA for f55aa29
l10n_es_aeat/models/res_partner.py
@@ -97,8 +97,10 @@ def _parse_aeat_vat_info(self):
97
self.ensure_one()
98
vat_number = self.vat or ""
99
prefix = vat_number[:2].upper()
100
- if self._map_aeat_country_code(prefix) in self._get_aeat_europe_codes():
101
- country_code = prefix
+ aeat_country_code = self._map_aeat_country_code(prefix)
+ if aeat_country_code in self._get_aeat_europe_codes():
102
+ # Return mapped vats like Greece. Take into account mapped countries
103
+ country_code = aeat_country_code
104
vat_number = vat_number[2:]
105
identifier_type = "02"
106
else:
0 commit comments