Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
6630 Представления

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 Ответы Просмотры Активность
2
янв. 22
4665
3
мар. 15
10439
2
мар. 23
10060
2
мар. 23
2461
1
янв. 24
14313