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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
3
Replies
1995
Views
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?"/>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
मार्च 25
|
1330 | ||
|
4
अप्रैल 24
|
174188 | ||
|
0
दिस॰ 23
|
2114 | ||
|
5
जुल॰ 25
|
227867 | ||
|
1
दिस॰ 22
|
3221 |
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!