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

Hello. At the right top of the page there is a mail button with a picture of a letter.

http://s2.postimg.org/gu9z6eup5/mail.png

My question: how to add in my custom module a similar button with image at this bar.

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

You need to add it when the instance.web.UserMenu's do_update is executed in the javacript UI to a div which has "oe_systray" class.  Basically build a new widget and then include it there.  The ComposeMessageTopButton is included in odoo/addons/mail/static/src/js/mail.js.  You can study the mechanism from that file.

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

Or use T-Compose Message Button module.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 22
4615
3
thg 3 15
10382
2
thg 3 23
9960
2
thg 3 23
2396
1
thg 1 24
14253