From 025c022c033a8574b9e4695800eb4b81f9e7cdbe Mon Sep 17 00:00:00 2001 From: Nikunj Ladava Date: Fri, 28 May 2021 07:35:03 +0000 Subject: [PATCH] [FIX] mail: support html message notification Notification service is supporting html message in it, but in simple notification it is not triggering the html notifications. So here we add html message support in simple notification to show the html content in it when requested. Before this commit: it was showinng simple text of html After this commit: it will show the html content in notification Task-2269743 Part-of: odoo/odoo#60605 --- .../messaging_notification_handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js index 478e4d33751..29d82e3ffcc 100644 --- a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js +++ b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js @@ -508,6 +508,7 @@ function factory(dependencies) { this.env.services['notification'].notify({ message: data.message, sticky: data.sticky, + messageIsHtml: data.message_is_html, type: data.warning ? 'warning' : 'danger', }); } else if (type === 'toggle_star') {