问题
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