| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1787 |
| Technical Name |
do_record_lock |
| License | OPL-1 |
| Website | https://www.doincredible.com |
Lock any record after approval â configure everything, code nothing
A universal governance layer for Odoo 19. Freeze a record once it reaches a milestone, restrict who may still edit it, require manager approval to unlock, auto-lock by age, and keep a full audit trail. Works on every model â standard, custom or third-party â with no code after install.
Locks live on the record â on any model
A clear banner shows the lock, its reason and who set it. The generic Actions menu adds Lock, Unlock, Request Unlock and Lock Info to every list and form â no per-model setup.
Everything you configure from the UI
Lock when a field reaches a value (posted, done, approved) or when a domain matches â built with the point-and-click domain editor.
Allow specific groups to keep editing while locked, with a separate (stricter) control for deletion and an optional field whitelist.
Require an approval workflow: users request, approvers get an activity, and only an approval lifts the lock.
A scheduled job freezes records older than N days, based on the date field you choose per rule.
Every lock and unlock is stamped with a reason, the actor and a timestamp â retained as history for audits.
A master kill-switch, a superuser/automation bypass for migrations, and break-glass admin access mean a lock is never unrecoverable.
Five ready-to-enable presets
Installed disabled and fully editable â flip on the ones you need for the apps you run.
| Preset | Model | Locks when |
| Lock posted journal entries | account.move | state = posted |
| Lock confirmed sale orders | sale.order | state = sale |
| Lock completed manufacturing orders | mrp.production | state = done |
| Lock validated stock pickings | stock.picking | state = done |
| Lock approved expenses | hr.expense | state = approved / posted |
A dedicated back-office app
No-code rule builder â target any model, pick the trigger with the domain editor, set who may edit, approval and auto-lock.
Central lock registry & audit â every locked record with its reason, actor, time and status.
Unlock approval queue â approvers review and approve or refuse; refusals keep the lock and notify the requester.
Lock analysis â pivot and graph views over locks by model, rule, status and duration.
Global settings â master switch, superuser bypass policy, global edit groups, default approver and reason enforcement.
Roles & multi-company
Company-scoped rules and entries, translatable strings, and record rules on every model.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1787 |
| Technical Name |
do_record_lock |
| License | OPL-1 |
| Website | https://www.doincredible.com |
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