Skip to Content
Menu
This question has been flagged
2 Replies
7578 Rodiniai

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

Portretas
Atmesti
Best Answer

Hello Trong,

Find code in Comment. 

I hope this will help you.

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

Portretas
Atmesti

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 Replies Rodiniai Veikla
1
birž. 25
1607
3
liep. 25
3254
1
geg. 25
1394
1
geg. 25
1644
4
geg. 25
2812