コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2849 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
6月 21
3681
3
12月 23
2219
0
11月 23
1312
2
9月 23
8252
2
11月 20
11242