Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
1981 Vues

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
Ignorer
Auteur

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!

Auteur Meilleure réponse

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

two possible solutions:

1. using attribute "confirm" on view of button

2. create wizard to do as your needs

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
mars 25
1316
4
avr. 24
174164
0
déc. 23
2087
5
juil. 25
227794
1
déc. 22
3217