Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Only one user at any time should be able to edit a contract. We need to pop up a dialog box with details of the user that has the record open if another user tries to edit the record.
This obvious feature doesn't appear to be native to OpenERP.
Is there a module that implements this across the whole system?
Only one user at any time should be able to edit a contract. We need to pop up a dialog box with details of the user that has the record open if another user tries to edit the record. The 2nd user should then be prevented from editing the record until it is unlocked (i.e. the 1st user either saves or discards the record).
Seems odd that record locking is not part of the default Openerp architecture - do you know why?
Can we take a look at how we can implement this and come back with some ideas. It's not a burning priority at the moment but will be as soon as one/two of the users "discover" this issue.
Anyone tryied to make this feature work in Odoo 11? If yes, how did you managed to make it trigger the "_check_concurrency" in order to prompt an error if a user is updating a record that have been updated by another user?
We tryied in our team to follow the source code that lead us to the "__last_update" field, and we gave it a try by updating the context to add this field by overriding the method "read(self)" of the tested model, but it seems the verification on the file /odoo/odoo/models.py on the "def _check_concurrency(self)" always display a context without any "__last_update" fields, and we cannot wrap our head around this!!
We have created a module that fixes the issues with the _check_concurrency function and we have improved on it as it was not covering some use cases. The module is available here. https://apps.openerp.com/apps/modules/9.0/concurrency/. The module can be made to work for v8 and v10 easily if there is an interest. It work in the enterprise version as well.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/23/13, 11:40 AM|
|Seen: 2356 times|
|Last updated: 6/4/18, 12:26 PM|