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

open menuitem on button click OpenERP

By
Saghir A. Khatri
on 3/12/15, 7:19 AM 752 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.

Regards

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