Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
6741 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jan. 22
4789
3
mar. 15
10592
2
mar. 23
10280
2
mar. 23
2577
1
jan. 24
14435