In odoo 12, I have button in wizard which opens a url in new tab. I want to close the wizard while clicking on same button. Any help would be appreciated. thank you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
2112
أدوات العرض
Hello Salman Hossain,
First install this OCA App.
https://apps.odoo.com/apps/modules/12.0/web_ir_actions_act_multi/
after that write the return statement as follows
action_url = {
'type': 'ir.actions.act_url',
'url': '/website/pages',
'target': 'self',
}
action_close = {'type': 'ir.actions.act_window_close'}
return {
'type': 'ir.actions.act_multi',
'actions': [action_url, action_close]
}
Regards
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل