Odoo Help


open menuitem on button click OpenERP

Saghir A. Khatri
on 3/12/15, 7:19 AM 1,286 views

I am trying to figure out how i can change selection of module(along with selection on menuitem on button click. (in simple words, i want to open a menu item when a button is clicked)

It is like. i have created a module name Home. It has button named "Search". On clicking button Menu Item 'Search' should be selected from top menu strip alont with opening that module. So far my code is:

def search_click (self,cr,uid,ids,context):

     return {

'type': 'ir.actions.act_window',

'res_model': 'target model name',

'view_type': 'form',

'view_mode': 'form',


The above code opens the model which i want to select. But i want to open the whole module in which that model/class is. Same functionality when we click on top bar menuitem.

Any help, or guide in proper direction is highly appreciated.


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: 3/12/15, 7:19 AM
Seen: 1286 times
Last updated: 3/16/15, 8:10 AM