Odoo Help

0

Call menu action from front-end js

By
Hilar
on 11/20/16, 11:35 PM 763 views

HI,

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

2

Hilar

--Hilar--
1245
| 5 3 8
Rome, Italy
--Hilar--
  Blog:-
        https://hilarlive.wordpress.com/
Hilar
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

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.

Register

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)

Stats

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