跳至内容
菜单
此问题已终结
2 回复
7480 查看

I have a button which calls a function which then will open a wizard, now I am trying to implement a server action which will call the exact same method but it doesnt open the wizard. I want to display a wizard with error message if the server action code fail

形象
丢弃
最佳答案

Hello Trong,

Find code in Comment. 

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

形象
丢弃

Try to below code for the open wizard,
return {
"type": "ir.actions.act_window",
"res_model": "Model name",
"views": “form”,
"name": "Wizard name",
}
If you want to display an error message used to UserError as per your requirement
example: raise UserError(_('Your message.'))

相关帖文 回复 查看 活动
1
6月 25
1143
3
7月 25
2882
1
5月 25
1076
1
5月 25
1346
4
5月 25
2477