콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3005 화면

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
3867
3
12월 23
2518
0
11월 23
1528
2
9월 23
8450
2
11월 20
11513