Hello, I am developing a new module in Odoo 8.
I need to display a confirm message (I see that I can do this adding the confirm="confirm message" in button XML) from the Python code, in a method.
For example: I override the create method of sale.order model. I want to check if the total of the sale is under X value. If the value > X, I display a confirm message like "Do you really confirm this sale?" and catch the button pressed for the user to decide what action I do.
Thanks!
So what is your question?
My question is, how can I display the message from Python code and how can I catch the button pressed by the user?
hope this will helps: https://learnopenerp.blogspot.com/2017/12/how-to-display-confirmation-display-box.html