Skip to Content

Contributors

Re: Concurrency write check

Very useful info, clarifies everything.
Probably a better solution would have been to just show an info to the user and remove the raise, but they did the simpler thing :)
Many thanks!
Sergio Corato


Il giorno gio 15 feb 2024 alle ore 23:11 Tom Blauwendraat <notifications@odoo-community.org> ha scritto:

Closest I could come in finding some info about it is this:

https://github.com/odoo/odoo/pull/87756

Apparently it caused problems and was already long ago removed from the frontend, and by 16.0 they killed the backend part as well.

On 2/15/24 19:07, Sergio Corato wrote:
The logic isn't implemented/enabled in any version that I checked, this seems at least strange (I saw this function working in other softwares decades ago).
Debugging didn't help, the context is never passed with the field '__last_update'.

However it's not a requested function, I'll give up for now ;)

Thanks
Sergio Corato


Il giorno gio 15 feb 2024 alle ore 17:07 Tom Blauwendraat <notifications@odoo-community.org> ha scritto:
I also looked for unit tests and didn't find, and also saw this function 
was deleted in 16.0 (but maybe renamed).

I think debugging is the only way to find out! pdb to the rescue

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


by Sergio Corato - 09:25 - 16 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