i have a custom view and i need return a custom view from javascript ! how to do it !
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
3005
화면
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 |