Community mailing list archives

Re: How Does Odoo Achieve Record Locking?

Akretion, Raphael Valyi
- 11/05/2015 12:44:19
Hello Phillip,

Odoo does "optimistic locking" indeed.

"Pessimistic locking" is not implemented, but that could be achieved doing something like overriding the read method of some class and writing a flag corresponding to the lock acquisition somewhere in the database. Or alternatively having a button to put that lock explicitly. Subsequent read attempts for the same id would be rejected based on the lock check. And you would also need to provide some lock administration interface and automatic ways of releasing the locks under certain conditions (like after a while...)

On Thu, Nov 5, 2015 at 3:17 PM, Phillip <> wrote:
I have noticed that in my Odoo instance a record can be opened by more 
than one user at the same time. I have also noticed that a record cant 
be written to simultaneously which seems quite reasonable. Is there any 
way to restrict the record from being opened in edit mode in more than 
one location?


AIM Systems

Post to:

Raphaël Valyi
Founder and consultant
+55 21 3942-2434