How to change the title in Odoo 10?

拜拜、爱过 提交于 2019-12-12 03:44:16

问题


I have changed the Odoo 10 login page title by using website builder app but it does not work on the other pages after login. After login when I access different installed apps then the page title shows Odoo with apps name like "Products - Odoo" or "Customers - Odoo".


回答1:


In Odoo 10, we need to edit below JS file

addons/web/static/src/js/abstract_web_client.js

Change this code:

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

With this one:

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

After this, you restart your Odoo server to see the changes.




回答2:


the funciton that change the tilte_part is :

_title_changed in the js file : addons/web/static/src/js/abstract_web_client.js

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

so you can change the word odoo by something that you need. and costumize the order of the title in _title_changed to display it like what ever you want.




回答3:


If you have installed openeducat packages then it's very simple. Activate the developer options and from there Just go to

Website -> Promote -> Optimize SEO.

In that wizard will get open from there change the title.



来源:https://stackoverflow.com/questions/42526695/how-to-change-the-title-in-odoo-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!