Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to add a button to the bar from the top ?

By
Andrew
on 1/26/15, 9:19 AM 1,150 views

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.

1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/26/15, 11:14 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/26/15, 9:19 AM
Seen: 1150 times
Last updated: 7/3/15, 5:23 AM