mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add app-odoo
This commit is contained in:
23
app_odoo_customize/static/src/js/dialog.js
Normal file
23
app_odoo_customize/static/src/js/dialog.js
Normal 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"
|
||||
// });
|
||||
// },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user