diff --git a/addons/web_notify/static/src/js/services/notification.esm.js b/addons/web_notify/static/src/js/services/notification.esm.js new file mode 100644 index 0000000..489fadd --- /dev/null +++ b/addons/web_notify/static/src/js/services/notification.esm.js @@ -0,0 +1,12 @@ +/** @odoo-module */ +import {Notification} from "@web/core/notifications/notification"; +import {patch} from "web.utils"; + +patch(Notification.props, "webNotifyProps", { + type: { + type: String, + optional: true, + validate: (t) => + ["warning", "danger", "success", "info", "default"].includes(t), + }, +});