Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
7496 Vues

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
Ignorer
Meilleure réponse

Hello Trong,

Find code in Comment. 

I hope this will help you.

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

Avatar
Ignorer

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

Publications associées Réponses Vues Activité
1
juin 25
1202
3
juil. 25
2945
1
mai 25
1125
1
mai 25
1400
4
mai 25
2511