跳至内容
菜单
此问题已终结
3 回复
23895 查看

Hello!

I would like to change the login page title. I tried to change the title in main.py file, but it did nothing to the login page. Tried 4 different browsers (maybe cache does not clean up) but still nothing. Is there some where else I should look for the title?

Also tried to restart the server = no results.

Thank you!

形象
丢弃

I have modified the file and there is nothing to edit anymore. Where could the problem be? Edit: Got it fixed. There was 2 openerp servers running somehow and I had to kill one from ps aux list then start it again and that fixed the problem.

最佳答案

In addons/web/static/src/js/chrome.js:

set_title: function(title) {
    title = _.str.clean(title);
    var sep = _.isEmpty(title) ? '' : ' - ';
    document.title = title + sep + 'OpenERP';
},

Modify or inherit that and set it however you want.

形象
丢弃
最佳答案

Brett's answer is valid for OpenERP/Odoo 7.

For Odoo 8:

形象
丢弃
相关帖文 回复 查看 活动
4
11月 24
2797
1
9月 24
1374
3
2月 24
5183
5
12月 24
33358
0
6月 22
328