简体   繁体   English

如何从这个浏览器选项卡中删除odoo?

[英]How to remove odoo from this browser tab?

如何从Assetcatg-Odoo选项卡中删除odoo。非常感谢。

I got it. 我知道了。 I have changed at addons/web/static/src/js/chrome.js : 我在addons/web/static/src/js/chrome.js

this.set('title_part', {"zopenerp": "Odoo"}); to this.set('title_part', {"zopenerp": "PTPL"}); to 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"});

    },

Use this code. 使用此代码。

    <template id="remove_odoo.web_layout" inherit_id="web.layout">
       <xpath expr="//title" position="replace"></xpath>
    </template>

if You want to create new module create new module name it remove_odoo or you can directly modify from addons/web/views/webclient_templates.xml and edit <title> tag inside the <template id="web.layout" name="Web layout"> 如果你想创建新模块创建新模块名称remove_odoo或者你可以直接修改addons/web/views/webclient_templates.xml并编辑<template id="web.layout" name="Web layout"> <title>标签<template id="web.layout" name="Web layout">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM