Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2826 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 21
3662
3
dec. 23
2155
0
nov. 23
1268
2
sept. 23
8229
2
nov. 20
11182