Odoo Help


How to avoid repeat function execution on the same object open in two tabs at the same time?

Alexei R. Acosta
on 9/1/15, 10:02 PM 495 views

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.

Any idea?

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/1/15, 10:02 PM
Seen: 495 times
Last updated: 9/1/15, 10:02 PM