Skip to Content
Menú
This question has been flagged
3 Respostes
1994 Vistes

In odoo, with a Python "raise warning" command I am able to launch a window that warns me of any error in a form. But until I fix that bug I can't save the form.

Now I want to create a simple confirmation window, that if I hit OK it will let me save the form.

Is there a command for this in Python?

Thank you very much.

Avatar
Descartar
Autor

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

Autor Best Answer

is there a way to do this with python in an automatic action?

like: raise Warning("xxxx")

but instead of RAISE WARNING, another command?

Thanks!

Avatar
Descartar
Best Answer

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

Avatar
Descartar
Best Answer

I added directly in the view of the model.

<button name="buttonClickEvent" string="Approve" type="object" class="oe_highlight"
confirm="Proceed to Approve Call?"/>


Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de març 25
1328
4
d’abr. 24
174186
0
de des. 23
2112
5
de jul. 25
227866
1
de des. 22
3221