Odoo Help


Call menu action from front-end js

on 11/20/16, 11:35 PM 1,127 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

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

or use do_action() in odoo js

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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