add app-odoo

This commit is contained in:
ivan deng
2022-10-21 18:15:02 +08:00
parent e346c360a2
commit 83d18a062c
292 changed files with 2968 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/** @odoo-module **/
import { Dialog } from "@web/core/dialog/dialog";
import { patch } from "@web/core/utils/patch";
import { session } from "@web/session";
patch(Dialog.prototype, "app_odoo_customize.Dialog", {
setup() {
this._super.apply(this, arguments);
const app_system_name = session.app_system_name || "odooApp";
this.title = app_system_name;
},
// mounted() {
// //todo: 没用,不能用 jq的处理方式
// this._super.apply(this, arguments);
// var $dl = this.__owl__.vnode ? this.__owl__.vnode.elm : null;
// var $ml = $dl.children[0].children[0].children[0];
// $ml.draggable({
// handle: ".modal-header"
// });
// },
});