Skip to Content

Contributors

Re: Concurrency write check

It looks like it only actions when CONCURRENCY_FIELD ("__last_update") 
is defined in the context, maybe that's why it's not triggering for you?

The functionality seems indeed to be that whenever someone tries to save 
a change on a form view of something that someone else saved meanwhile, 
it drops out with a validation error.

Perhaps they added the context key just to be able to test with this 
functionality before rolling it out?

On 2/14/24 18:27, Sergio Corato wrote:

> Hi,

> I haven't found a way to check if the concurrency check here works: 

> https://github.com/odoo/odoo/blob/14.0/odoo/models.py#L3251

> Shouldn't it warn/block if someone tries to write on a field that has 

> been modified in the meanwhile?

> Sergio Corato

>

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe

>

by Tom Blauwendraat - 12:01 - 15 Feb 2024

Reference

  • Concurrency write check
    Hi,
    I haven't found a way to check if the concurrency check here works: https://github.com/odoo/odoo/blob/14.0/odoo/models.py#L3251
    Shouldn't it warn/block if someone tries to write on a field that has been modified in the meanwhile?
    Sergio Corato

    by Sergio Corato - 06:26 - 14 Feb 2024