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
الرد
2688
أدوات العرض
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
يونيو 21
|
3432 | ||
|
3
ديسمبر 23
|
1854 | ||
|
0
نوفمبر 23
|
1082 | ||
|
2
سبتمبر 23
|
8029 | ||
|
2
نوفمبر 20
|
10976 |