Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
7561 Prikazi

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

Avatar
Opusti
Best Answer

Hello Trong,

Find code in Comment. 

I hope this will help you.

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

Avatar
Opusti

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.'))

Related Posts Odgovori Prikazi Aktivnost
1
jun. 25
1546
3
jul. 25
3216
1
maj 25
1368
1
maj 25
1617
4
maj 25
2770