diff --git a/addons/account_edi_ubl_bis3/data/bis3_templates.xml b/addons/account_edi_ubl_bis3/data/bis3_templates.xml
index ad7c95b9d8b..4841d16577c 100644
--- a/addons/account_edi_ubl_bis3/data/bis3_templates.xml
+++ b/addons/account_edi_ubl_bis3/data/bis3_templates.xml
@@ -11,6 +11,7 @@
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
diff --git a/addons/l10n_nl_edi/i18n/l10n_nl_edi.pot b/addons/l10n_nl_edi/i18n/l10n_nl_edi.pot
new file mode 100644
index 00000000000..272354eb7b0
--- /dev/null
+++ b/addons/l10n_nl_edi/i18n/l10n_nl_edi.pot
@@ -0,0 +1,77 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_nl_edi
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 15.0+e\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-12-07 10:59+0000\n"
+"PO-Revision-Date: 2021-12-07 10:59+0000\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "Customer's address must include street, zip and city (%s)."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid ""
+"Customer's country must belong to the EAS (Electronic Address Scheme) code "
+"list."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: model:ir.model,name:l10n_nl_edi.model_account_edi_format
+msgid "EDI format"
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "Each invoice line must have a product or a label."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "Please define a VAT number for '%s'."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "The customer %s must have a KvK-nummer or OIN."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "The supplier %s must have a KvK-nummer or OIN."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "The supplier %s must have a bank account."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "The supplier's address must include street, zip and city (%s)."
+msgstr ""
+
+#. module: l10n_nl_edi
+#: code:addons/l10n_nl_edi/models/account_edi_format.py:0
+#, python-format
+msgid "When vat is present, the supplier must have a vat number."
+msgstr ""
diff --git a/addons/l10n_nl_edi/models/account_edi_format.py b/addons/l10n_nl_edi/models/account_edi_format.py
index b69be42177e..3fc35303b54 100644
--- a/addons/l10n_nl_edi/models/account_edi_format.py
+++ b/addons/l10n_nl_edi/models/account_edi_format.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-from odoo import models, _
-
-import base64
import markupsafe
+from odoo.addons.account_edi_ubl_bis3.models.account_edi_format import COUNTRY_EAS
+
+from odoo import models, _
class AccountEdiFormat(models.Model):
@@ -100,6 +100,8 @@ class AccountEdiFormat(models.Model):
errors.append(_("Customer's address must include street, zip and city (%s).", customer.display_name))
if customer.country_code == 'NL' and not customer.l10n_nl_kvk and not customer.l10n_nl_oin:
errors.append(_("The customer %s must have a KvK-nummer or OIN.", customer.display_name))
+ if customer.country_code not in COUNTRY_EAS:
+ errors.append(_("Customer's country must belong to the EAS (Electronic Address Scheme) code list."))
if not invoice.partner_bank_id:
errors.append(_("The supplier %s must have a bank account.", supplier.display_name))