Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6639 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
opening a view through a button แก้ไขแล้ว
2
ม.ค. 22
4676
3
มี.ค. 15
10444
2
มี.ค. 23
10066
Cacher le bouton "créer" d'une liste แก้ไขแล้ว
2
มี.ค. 23
2466
1
ม.ค. 24
14323