如何从此浏览器选项卡中删除 odoo?
How to remove odoo from this browser tab?
如何从 Assetcatg-Odoo 选项卡中删除 odoo。感谢任何执行此操作的程序。
使用此代码。
<template id="remove_odoo.web_layout" inherit_id="web.layout">
<xpath expr="//title" position="replace"></xpath>
</template>
如果您想创建新模块,请创建新模块名称 remove_odoo 或者您可以直接从 addons/web/views/webclient_templates.xml
修改并编辑 <template id="web.layout" name="Web layout">
[= 内的 <title>
标签14=]
我明白了。我改变了
addons/web/static/src/js/chrome.js
:
this.set('title_part', {"zopenerp": "Odoo"});
到 this.set('title_part', {"zopenerp": "PTPL"});
instance.web.WebClient = instance.web.Client.extend({
init: function(parent, client_options) {
this._super(parent);
if (client_options) {
_.extend(this.client_options, client_options);
}
this._current_state = null;
this.menu_dm = new instance.web.DropMisordered();
this.action_mutex = new $.Mutex();
#this.set('title_part', {"zopenerp": "Odoo"});
this.set('title_part', {"zopenerp": "PTPL"});
},
如何从 Assetcatg-Odoo 选项卡中删除 odoo。感谢任何执行此操作的程序。
使用此代码。
<template id="remove_odoo.web_layout" inherit_id="web.layout">
<xpath expr="//title" position="replace"></xpath>
</template>
如果您想创建新模块,请创建新模块名称 remove_odoo 或者您可以直接从 addons/web/views/webclient_templates.xml
修改并编辑 <template id="web.layout" name="Web layout">
[= 内的 <title>
标签14=]
我明白了。我改变了
addons/web/static/src/js/chrome.js
:
this.set('title_part', {"zopenerp": "Odoo"});
到 this.set('title_part', {"zopenerp": "PTPL"});
instance.web.WebClient = instance.web.Client.extend({
init: function(parent, client_options) {
this._super(parent);
if (client_options) {
_.extend(this.client_options, client_options);
}
this._current_state = null;
this.menu_dm = new instance.web.DropMisordered();
this.action_mutex = new $.Mutex();
#this.set('title_part', {"zopenerp": "Odoo"});
this.set('title_part', {"zopenerp": "PTPL"});
},