Hello Every one...
In Odoo 8 , Expense I have a field Budget whose value is coming from onchange, now what I want is when amount i.e total expense exceeds budget amount it should throw popup and that entry should not be saved.
I have created a update button like in purchase or sale module and on if condition its showing popup. But ALL I want is how to disallow save of that entry. i.e. exceeding amount entry should not be saved. when user click on update button and if condition is true it create popup but after clicking popup ok it allows to save form.
Thanks in advance....
You can super the create function of the model to do this. or you can do it by giving constrains