Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
11
web_notify/static/src/js/services/notification.esm.js
Executable file
11
web_notify/static/src/js/services/notification.esm.js
Executable file
@@ -0,0 +1,11 @@
|
||||
import {Notification} from "@web/core/notifications/notification";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
||||
patch(Notification.props, {
|
||||
type: {
|
||||
type: String,
|
||||
optional: true,
|
||||
validate: (t) =>
|
||||
["warning", "danger", "success", "info", "default"].includes(t),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user