[ADD] show message under html format

pull/2412/head
Minh Chien 2023-04-10 17:23:01 +07:00 committed by Benoit Aimont
parent 28b8e6d4a6
commit f099779fc8
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
/** @odoo-module **/ /** @odoo-module **/
import {Markup} from "web.utils";
import {browser} from "@web/core/browser/browser"; import {browser} from "@web/core/browser/browser";
import {registry} from "@web/core/registry"; import {registry} from "@web/core/registry";
@ -19,7 +20,7 @@ export const webNotificationService = {
notifications.forEach(function (notif) { notifications.forEach(function (notif) {
browser.setTimeout(function () { browser.setTimeout(function () {
notification.add(notif.message, { notification.add(Markup(notif.message), {
title: notif.title, title: notif.title,
type: notif.type, type: notif.type,
sticky: notif.sticky, sticky: notif.sticky,