2015-11-20 37 views

回答

0

使用此代碼。

<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">

+0

我已經更名與其他詞,但它 –

+0

你重新啓動與更新服務器它沒有改變?你創建了新模塊嗎?嘗試刪除Cookie後也嘗試。並仍然無法發佈您的代碼。 –

+0

是啊,我就在那裏.xml文件更名,但它不是做 –

3

我把它裏面<title>標籤。我在 addons/web/static/src/js/chrome.js發生了變化:

this.set('title_part', {"zopenerp": "Odoo"});this.set('title_part', {"zopenerp": "PTPL"});

enter image description here

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"}); 

    }, 
+0

編輯就設在這裏 插件\網絡\靜態的\ src \ JS \ abstract_web_client.js文件 – njoshsn

相關問題