From 90546e4aaac40f19dd1a312865c200eed87dae23 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 29 Oct 2020 05:11:20 +0000 Subject: [PATCH] [FIX] web: handle mail delivery exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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#61832 X-original-commit: 3aadcf1ad42e704c369910628a1549d1e777c959 Signed-off-by: Sébastien Theys (seb) --- addons/web/i18n/web.pot | 7 +++++++ addons/web/static/src/js/services/crash_manager.js | 1 + 2 files changed, 8 insertions(+) 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 @@ -2478,6 +2478,13 @@ msgstr "" msgid "Method:" 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 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"),