Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/1/15, 10:02 PM|
|Seen: 377 times|
|Last updated: 9/1/15, 10:02 PM|