Skip to content

Commit

Permalink
[IMP] l10n_in_edi: correct the warning for E - Invoice having API mis…
Browse files Browse the repository at this point in the history
…match

Before this commit:
The warning message displayed for E-Invoices with API and
tax ID mismatch was incorrect. It stated: '[0] Unable to send e-Invoice. Create
an API user in NIC portal, and set it using the top menu:
Configuration > Settings.'

After this commit:
The warning message for E-Invoices with API and tax ID mismatch has been
updated. The new warning message now reads: 'Ensure GST Number set on company
setting and API are Verified.'

closes odoo#148919

X-original-commit: bf44092
Signed-off-by: Josse Colpaert <[email protected]>
Signed-off-by: Zeel Patel (zepa) <[email protected]>
  • Loading branch information
zepa-odoo committed Jan 11, 2024
1 parent 2eec0b6 commit c513956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 6 additions & 8 deletions addons/l10n_in_edi/i18n/l10n_in_edi.pot
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ msgstr ""
msgid "Enable the use of production credentials"
msgstr ""

#. module: l10n_in_edi
#: code:addons/l10n_in_edi/models/account_edi_format.py:0
#, python-format
msgid "Ensure GST Number set on company setting and API are Verified."
msgstr ""

#. module: l10n_in_edi
#: code:addons/l10n_in_edi/models/account_edi_format.py:0
#, python-format
Expand Down Expand Up @@ -306,14 +312,6 @@ msgid ""
"temporary down. Please try again in a moment."
msgstr ""

#. module: l10n_in_edi
#: code:addons/l10n_in_edi/models/account_edi_format.py:0
#, python-format
msgid ""
"Unable to send e-Invoice.Create an API user in NIC portal, and set it using "
"the top menu: Configuration > Settings."
msgstr ""

#. module: l10n_in_edi
#: model_terms:ir.ui.view,arch_db:l10n_in_edi.res_config_settings_view_form_inherit_l10n_in_edi
msgid "Username"
Expand Down
3 changes: 1 addition & 2 deletions addons/l10n_in_edi/models/account_edi_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,7 @@ def _l10n_in_edi_no_config_response(self):
return {'error': [{
'code': '0',
'message': _(
"Unable to send e-Invoice."
"Create an API user in NIC portal, and set it using the top menu: Configuration > Settings."
"Ensure GST Number set on company setting and API are Verified."
)}
]}

Expand Down

0 comments on commit c513956

Please sign in to comment.