diff --git a/addons/l10n_it_edi/models/account_invoice.py b/addons/l10n_it_edi/models/account_invoice.py index ea28eef9a90..123081e5503 100644 --- a/addons/l10n_it_edi/models/account_invoice.py +++ b/addons/l10n_it_edi/models/account_invoice.py @@ -112,7 +112,7 @@ class AccountInvoice(models.Model): raise UserError(_("%s must have a street.") % (buyer.display_name)) if not buyer.zip: raise UserError(_("%s must have a post code.") % (buyer.display_name)) - if len(buyer.zip) != 5: + if len(buyer.zip) != 5 and buyer.country_id.code == 'IT': raise UserError(_("%s must have a post code of length 5.") % (buyer.display_name)) if not buyer.city: raise UserError(_("%s must have a city.") % (buyer.display_name))