Record Locking (Prevent Concurrent Editing)
The Record Locking (Prevent Concurrent Editing) module is a lightweight, efficient utility that prevents concurrent editing conflicts by locking records when they are opened by a user. It displays a clear warning banner showing the current editor's name to other users who access the same record, and dynamically switches their view to read-only mode to prevent data overwrites.
Features
Prevent Concurrent Editing
Central Lock Configuration
Record Locking (Prevent Concurrent Editing)
Our Record Locking (Prevent Concurrent Editing) module provides a robust way to prevent concurrent editing conflicts on Odoo forms by locking records while a user is actively editing them. This ensures data integrity and prevents team members from accidentally overwriting each other's changes.
Key Features & Benefits
- Prevent Concurrent Editing: Automatically locks records when opened, warning other users and switching their view to read-only.
- Real-time Editor Status: Displays a prominent banner at the top of the Chatter showing who is currently editing the record.
- Configurable Models: Choose exactly which Odoo models should support record locking via the central settings page.
- Auto Lock Release: Automatically cleans up expired locks after 25 seconds of inactivity or when the user closes the form.
- Heartbeat System: Runs a lightweight background check every 10 seconds to maintain active locks without performance degradation.
- Seamless Integration: Plugs natively into Odoo form controller, working seamlessly across standard or custom form views.
Workflow
Record Locking Workflow – Dynamically monitor record viewing, register active locks on configured models, notify concurrent users, and release locks automatically.
Module Configuration
1. Configure Lockable Models under General Settings
2. A lock warning banner appears in the Chatter section when another user edits the record
3. Locked records automatically switch to Read-Only mode to prevent concurrent edits
Search Tags & Use Cases
odoo record locking, prevent concurrent editing odoo, lock records, document locking, multi user editing odoo, edit lock, avoid concurrent edit conflicts, collision prevention odoo, read-only lock banner
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module