Odoo Help


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.


Call menu action from front-end js

Hilar AK
on 11/20/16, 11:35 PM 613 views


How can I call and do menu action from front-end js ?

ie , if I click on a button it should perform job like when we click on a menu in back-end


Hilar AK

--Hilar AK--
| 5 2 7
--Hilar AK--

Hilar AK
On 11/21/16, 12:01 AM

Hi I got the solution..

One option is through like this, just create a link like

<a class="btn btn-primary" t-att-href="'/web#menu_id=%s&amp;action=%s&amp;id=%s&amp;view_type=form&amp;model=your_model' % (%(addon.menu_id)d, %(addon.action_id)d, your_res_id, )">Go to backend</a>

This will redirect to back- end

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)


Asked: 11/20/16, 11:35 PM
Seen: 613 times
Last updated: 12/7/16, 10:19 PM