diff --git a/addons/account_edi_ubl_cii/models/account_edi_common.py b/addons/account_edi_ubl_cii/models/account_edi_common.py index debb438ad37..ce830396e3e 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_common.py +++ b/addons/account_edi_ubl_cii/models/account_edi_common.py @@ -131,7 +131,7 @@ class AccountEdiCommon(models.AbstractModel): # add Norway, Iceland, Liechtenstein european_economic_area = self.env.ref('base.europe').country_ids.mapped('code') + ['NO', 'IS', 'LI'] - if customer.country_id.code == 'ES': + if customer.country_id.code == 'ES' and customer.zip: if customer.zip[:2] in ('35', '38'): # Canary # [BR-IG-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "IGIC" shall not have a VAT # exemption reason code (BT-121) or VAT exemption reason text (BT-120).