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.
To pytanie dostało ostrzeżenie
3
Odpowiedzi
2657
Widoki
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!
two possible solutions:
1. using attribute "confirm" on view of button
2. create wizard to do as your needs
I added directly in the view of the model.
<button name="buttonClickEvent" string="Approve" type="object" class="oe_highlight"
confirm="Proceed to Approve Call?"/>
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
0
mar 26
|
10 | ||
|
|
0
mar 25
|
3819 | ||
|
|
4
kwi 24
|
177763 | ||
|
|
0
gru 23
|
3934 | ||
|
|
5
lip 25
|
235653 |
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!