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
Ответить
3542
Представления
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Регистрация| Related Posts | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
1
июн. 21
|
4399 | ||
|
|
3
дек. 23
|
3389 | ||
|
|
0
нояб. 23
|
2447 | ||
|
|
2
сент. 23
|
9082 | ||
|
|
2
нояб. 20
|
12059 |