Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2833 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 21
3670
3
pro 23
2199
0
lis 23
1297
2
zář 23
8235
2
lis 20
11216