This module adds a field to restrict a stock move to a specific lot. It propagates it between chained moves. A move with a restrict lot will only be able to reserve or transfer products with the specified lot. This module serves as a basis for other modules, it has not effect on its own.
auto_awesome What this module does
AI-generated from the code · Odoo 20.0Adds a "Restrict Lot" field on stock moves and transfers so a move can be tied to one specific lot/serial number, and only that lot can be reserved or moved. It is a base module: on its own it mainly displays and propagates the restriction.
This module brings back the idea of restricting a stock move to one specific lot or serial number. It is a base module, so most of its effect is visible only when other modules use the restriction, but the field and its behaviour are already in place.
Where it appears: - A "Restrict Lot" column is added to the move lists and the move kanban view, and to the Operations tab of the transfer form, visible only to users allowed to manage lots and serial numbers. - The transfer search view gets a "Lot" filter based on this restriction. - On the transfer itself the field is read-only and simply reflects the value of its moves.
Automatic behaviours: - When a move has a restricted lot, reservation and availability calculations only consider that lot, and only that lot is suggested when choosing which lots to take from an incoming move. - The lot is automatically filled on the generated move lines; if a different lot was reserved, an error is raised. - When the transfer is validated, Odoo checks that the lots actually moved match the restriction and blocks the validation otherwise. - The restriction is carried over to chained moves, to procurement values, to push rules and to return moves. - Moves with different restricted lots are not merged together. - Changing the restricted lot is refused if a move further down the chain is already done with another lot; otherwise the change is applied to the whole chain.
It touches stock.move, stock.picking, stock.rule and product quantity computations.
Depends on
Required by other modules
Models and fields (4)
- stock.move · extends an existing modelrestrict_lot_id
- stock.rule · extends an existing model
- stock.picking · extends an existing modelrestrict_lot_id (Restrict Lot)
- product.product · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 20.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: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
No verified informationInstallation 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.