I would like to know if there is a way to avoid double execution of a function in a button_confirm for example, if state of object has change, without explicit checking current state.
Have you ever try to open an object that has a "Confirm" state in two tabs at same time, then confirm in each one? The code will be executed each time an sometimes it could bring unexpected results, for example, duplicated generation of another object, double calculation, what eve.
I think I could add a condition asking for the object's state but I didn't see anything like that in odoo code.
Thanks in advanced
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 9/1/15, 10:02 PM|
|Seen: 226 times|
|Last updated: 9/1/15, 10:02 PM|