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

Hey guys! In your Odoo implementation, are you able to change the window title on top for each page? 

For example, in this moment, I have « Ask a question - Odoo » for window title. 

Thanks

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

Goto Website -> Promote in top right corner -> Reference Your Page -> Change Title.

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks!

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

Thanks Dhinesh. Time saver!

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

Hi Leonardo,

Please can you create this module and post it? because this sounds very complicated. id like a module so that i dont have to edit the code in odoo.

id really appreciate it.

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

If you want to change it without installing the website module and/or you want to do it in an external module, check my answer to the same question on stackoverflow.

Sum up: you have to inherit the web.layout template and replace the title element, and extend the init method of the openerp.web.WebClient JS class, call super then add the line: this.set('title_part', {"zopenerp": "Your Title"});

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks!

Thanks a lot! You're a life saver man!