Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
7806 Visualizações

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
Cancelar
Melhor resposta

Hello Trong,

Find code in Comment. 

I hope this will help you.

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

Avatar
Cancelar

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

Publicações relacionadas Respostas Visualizações Atividade
1
set. 25
2381
1
jun. 25
2401
3
jul. 25
3879
1
mai. 25
2016
4
mai. 25
3375