Auto-Lock Confirmed Sale Orders
Once a quotation becomes a Sales Order, its lines, prices and customer details are usually final, yet Odoo still leaves the whole order fully editable. One rushed edit can silently change a document your customer already agreed to. This module locks every order the instant it is confirmed, so any later change has to be a deliberate unlock. It reuses Odoo’s own Lock mechanism, with a single on/off setting under Sales.
What This Module Does
It closes a small but costly gap: a confirmed order that is still wide open to edits. The behaviour is automatic, uses Odoo’s own lock, and can be switched off at any time.
How it works
Install it, keep confirming orders the way you always do, and let the lock take care of itself.
- Install the module on top of Sales. The auto-lock setting is enabled by default, so there is nothing else to configure.
- Confirm a quotation as normal. The moment it becomes a Sales Order, the module applies Odoo’s native Locked state to it.
- The order is now read-only. Anyone who tries to change it sees it is locked and must click Unlock first, so edits are always deliberate.
- Prefer the standard behaviour? Open Sales › Settings and switch Auto-Lock Confirmed Orders off at any time.
See It in Action
From the one-line Sales setting, to a freshly confirmed order that is already locked, to the read-only form that keeps edits deliberate.
Helping businesses work smarter with tailored Odoo solutions. We deliver custom modules, integrations, and workflow improvements designed for your needs.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 46 |
| Technical Name |
mindscript_auto_lock_sale_order |
| License | OPL-1 |
| Website | https://www.mindscriptech.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