Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4664 Visualizzazioni

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 16
4684
4
ott 16
31276
1
set 15
3936
1
giu 15
848
0
mag 15
3141