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

i have a custom view and i need return a custom view from javascript ! how to do it !

Avatar
Abbandona
Risposta migliore

Hi,

Try like below code.

$("#your button id").click(function(){
        self.do_action({
            name:'view name',
            type: 'ir.actions.act_window',
            res_model: 'model.name',
            view_mode: 'kanban',
            views: [[view_id, 'kanban']],
            domain: [['state', '=', 'pending']],
        })
        })

in view_id, refer your corresponding models view id

Regards

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 21
3567
3
dic 23
1987
0
nov 23
1174
2
set 23
8154
2
nov 20
11095