コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
6647 ビュー

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.

アバター
破棄
最善の回答

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.

アバター
破棄
最善の回答

Or use T-Compose Message Button module.

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 22
4681
3
3月 15
10450
2
3月 23
10081
2
3月 23
2471
1
1月 24
14329