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.
Pertanyaan ini telah diberikan tanda
3
Replies
2633
Tampilan
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?"/>
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Mar 26
|
10 | ||
|
|
0
Mar 25
|
3736 | ||
|
What means "Too many values to unpack" message?
Diselesaikan
|
|
4
Apr 24
|
177705 | |
|
|
0
Des 23
|
3916 | ||
|
|
5
Jul 25
|
235594 |
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!