Odoo Help

Welcome!

This community 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.

0

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

By
Alexei R. Acosta
on 9/1/15, 10:02 PM 245 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

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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