25 lines
758 B
JavaScript
25 lines
758 B
JavaScript
/** @odoo-module **/
|
|
|
|
import { registry } from "@web/core/registry";
|
|
|
|
const serviceRegistry = registry.category("services");
|
|
|
|
const myService = {
|
|
dependencies: ["notification","title","effect"],
|
|
start(env, { notification, title,effect }) {
|
|
|
|
// let counter = 1;
|
|
// setInterval(() => {
|
|
// var tik_str = `Tick Tock ${counter++}`;
|
|
// notification.add(tik_str);
|
|
// title.setParts({ odoo: tik_str, fruit: tik_str });
|
|
// effect.add({
|
|
// type: "rainbow_man", // can be omitted, default type is already "rainbow_man"
|
|
// message: "Boom! Team record for the past 30 days." + tik_str,
|
|
// });
|
|
// }, 5000);
|
|
|
|
}
|
|
};
|
|
|
|
serviceRegistry.add("myService", myService); |