新增排产的时候, 根据胚料的长宽高比对一下机床的最大加工尺寸.不符合就不要分配给这个加工中心(机床).
This commit is contained in:
25
owl_demo/static/src/js/services/notification.js
Normal file
25
owl_demo/static/src/js/services/notification.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/** @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);
|
||||
Reference in New Issue
Block a user