簡體   English   中英

如何從這個瀏覽器選項卡中刪除odoo?

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

如何從Assetcatg-Odoo選項卡中刪除odoo。非常感謝。

我知道了。 我在addons/web/static/src/js/chrome.js

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

    },

使用此代碼。

    <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>標簽<template id="web.layout" name="Web layout">

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM