This module adds a quant lock mechanism based on standard stock reservations. When a quant is locked, its non-reserved quantity is reserved by a dedicated stock picking so it cannot be consumed by other operations.
The lock operation is done through a selectable route explicitly configured for quant locking: the push rule of the route defines the operation type, the destination and the grouping of the lock transfer. Unlocking cancels the lock picking, which releases the corresponding reservation while keeping full traceability through standard Odoo stock documents.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Lets users lock selected stock quants so their available quantity is reserved by a dedicated transfer and cannot be taken by other operations, while keeping full traceability through normal stock moves.
This module adds a way to "freeze" specific stock quants (the detailed stock records per product, location, lot or package) so their free quantity is reserved and cannot be consumed by other operations.
Where it appears: - On the stock quant screens (list and form) you get a "Lock Moves" counter button and a "Locked by issue" filter in the search view. - A "Lock Quants" action is available on selected quants (list and form), opening a small wizard where you pick a route and confirm with a "Lock" button. - On stock routes, a new "Allow quant lock" checkbox marks which routes may be used for locking. - On warehouses, a read-only "Quality Check Route" field is shown.
Business rules and automatic behaviour: - Locking creates a stock move (and its transfer) that reserves the quant's available quantity; if the full quantity cannot be reserved, an error is raised. - A route can only be used if it is flagged for quant locking, has a matching push rule, and its operation type reserves at confirmation; quants in locations that bypass reservation cannot be locked. - A quant already locked by another operation type cannot be locked again. - Unlocking cancels the active lock moves, but is refused if a lock move is already done. - When a warehouse is created, a Quality Check location, operation type and route are generated automatically to support this locking.
It touches stock.quant, stock.move, stock.route and stock.warehouse.
Depends on
Models and fields (5)
- stock.move · extends an existing modelquant_lock_quant_id (Locked quant)
- stock.quant · extends an existing modellock_move_ids (Lock Moves), lock_move_count, is_locked_by_picking (Locked by issue)
- stock.route · extends an existing modelallow_quant_lock (Allow quant lock)
- stock.warehouse · extends an existing modelquality_check_route_id (Quality Check Route)
- stock.quant.lock.wizard · new modelroute_id (Route), quant_ids (Quants)
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0A Quality Check route is created for each warehouse. It locks quants of any location of the warehouse with a dedicated Quality Check operation type to the Quality Check location of the warehouse. It can be used as is or adapted, and is the simplest way to start using this module.
To configure other lock routes, you need to:
- Go to Inventory > Configuration > Routes.
- Create or open the route that will be used for quant locking.
- Enable Allow quant lock.
- Add a Push To rule. Its source location must contain the locations of the quants to lock, its destination location and operation type define the lock transfer. The Reservation Method of this operation type must be At Confirmation.
When several rules of the route match the location of a quant, the rule with the most specific source location is used, then the rule sequence. As for any rule, the Propagation of Procurement Group option of the rule defines how lock moves are grouped into transfers.
Only routes with Allow quant lock enabled can be selected when locking quants.
Usage
Source · Odoo 16.0To use this module, you need to:
- Go to Inventory > Reporting > Locations (or any inventory quant view).
- Open the quant to lock.
- Click Lock Quant.
- In the wizard, select a route configured for quant locking.
- Confirm.
For batch operations from list views:
- Select several quants.
- Use Action > Lock Quants and confirm the wizard.
- To release several locks at once, select locked quants and use Action > Unlock Quants.
The quant form also includes a Lock Moves smart button that opens the complete history of moves linked to the quant lock.
After confirmation, a lock picking is created and reserved. The quant displays the linked lock picking.
To unlock, open the same quant and click Unlock Quant. The lock picking is cancelled and the reservation is released.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.