[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#61832 X-original-commit: 3aadcf1ad42e704c369910628a1549d1e777c959 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user