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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
2777
查看
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
|
3581 | ||
|
3
12月 23
|
2042 | ||
|
0
11月 23
|
1189 | ||
|
2
9月 23
|
8162 | ||
|
2
11月 20
|
11108 |