Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2840 Visualizações

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

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jun. 21
3678
3
dez. 23
2210
0
nov. 23
1307
2
set. 23
8241
2
nov. 20
11236