İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
6627 Görünümler

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.

Avatar
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Oca 22
4655
3
Mar 15
10435
2
Mar 23
10053
2
Mar 23
2457
1
Oca 24
14311