diff --git a/addons/account_peppol/i18n/account_peppol.pot b/addons/account_peppol/i18n/account_peppol.pot index 57d3654c5ac..a7791adcede 100644 --- a/addons/account_peppol/i18n/account_peppol.pot +++ b/addons/account_peppol/i18n/account_peppol.pot @@ -554,6 +554,13 @@ msgstr "" msgid "Please fill in the EAS code and the Participant ID code." msgstr "" +#. module: account_peppol +#. odoo-python +#: code:addons/account_peppol/models/res_company.py:0 +#, python-format +msgid "Please install the phonenumbers library." +msgstr "" + #. module: account_peppol #. odoo-python #: code:addons/account_peppol/wizard/account_move_send.py:0 diff --git a/addons/account_peppol/models/res_company.py b/addons/account_peppol/models/res_company.py index f2f52ea26d3..acf0e94f7f4 100644 --- a/addons/account_peppol/models/res_company.py +++ b/addons/account_peppol/models/res_company.py @@ -82,7 +82,7 @@ class ResCompany(models.Model): "Currently, only European countries are supported.") if not phonenumbers: - raise ValidationError(error_message) + raise ValidationError(_("Please install the phonenumbers library.")) phone_number = phone_number or self.account_peppol_phone_number if not phone_number: