Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
23912 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

For Odoo 8:

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 11 24
2849
1
thg 9 24
1414
3
thg 2 24
5242
5
thg 12 24
33416
0
thg 6 22
328