diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2020-10-29 05:11:20 +0000 |
|---|---|---|
| committer | Hiral Bhavsar <hbh@odoo.com> | 2020-11-17 06:49:39 +0000 |
| commit | 3aadcf1ad42e704c369910628a1549d1e777c959 (patch) | |
| tree | c2aaf67e0009d8d3782418c4ec218794b0a23f42 /addons/web | |
| parent | 7683e1907f6eb1fde4626927957df4eede49b8ca (diff) | |
[FIX] web: handle mail delivery exception
Before this commit:
When trying to send the notification for the user form, it shows a traceback.
This is happening after https://github.com/odoo/odoo/commit/ab4000fb3cf8fa54ba714ceceec391b78d73755e
After this commit:
Send the notification without any traceback as handle
the MailDeliveryException inside CrashManager
Task-2333121
closes odoo/odoo#60938
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/i18n/web.pot | 7 | ||||
| -rw-r--r-- | addons/web/static/src/js/services/crash_manager.js | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/i18n/web.pot b/addons/web/i18n/web.pot index d2951232add..423a15f2e21 100644 --- a/addons/web/i18n/web.pot +++ b/addons/web/i18n/web.pot @@ -2480,6 +2480,13 @@ msgstr "" #. module: web #. openerp-web +#: code:addons/web/static/src/js/services/crash_manager.js:92 +#, python-format +msgid "MailDeliveryException" +msgstr "" + +#. module: web +#. openerp-web #: code:addons/web/static/src/js/services/crash_manager.js:0 #, python-format msgid "Missing Record" diff --git a/addons/web/static/src/js/services/crash_manager.js b/addons/web/static/src/js/services/crash_manager.js index b618607a47f..2ca64dc5275 100644 --- a/addons/web/static/src/js/services/crash_manager.js +++ b/addons/web/static/src/js/services/crash_manager.js @@ -89,6 +89,7 @@ var CrashManager = AbstractService.extend({ active = true; this.isConnected = true; this.odooExceptionTitleMap = { + 'odoo.addons.base.models.ir_mail_server.MailDeliveryException': _lt("MailDeliveryException"), 'odoo.exceptions.AccessDenied': _lt("Access Denied"), 'odoo.exceptions.AccessError': _lt("Access Error"), 'odoo.exceptions.MissingError': _lt("Missing Record"), |
