Stock Restrict Lot Domain
This module builds on stock_restrict_lot and exposes the field restrict_lot_id of stock.move, allowing the user to update or even remove the lot restriction if the product does not fall within a domain.
The domain can be updated in the settings of each individual company.
Any change to restrict_lot_id is propagated to linked stock moves, but only forwards, not backwards.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Lets you set a product domain in the company settings so that lot restrictions on stock moves can only be changed for products inside that domain. For products outside the domain, the lot restriction field becomes read-only.
This module extends the lot restriction feature by adding a company-level setting that controls which products are allowed to have their lot restriction changed.
In the Inventory settings, a new field called "Enforce lot restrictions" lets you enter a product domain (for example, a category or a specific product). If the domain is empty, lot restrictions cannot be changed for any product.
On transfer forms (stock.picking), the lot restriction field is shown in the operations list and in the detailed move form, but only for users in the lot/serial number group. Whether that field can be edited depends on the product: if the product matches the domain, the field stays editable; if not, it becomes read-only.
When you do change the lot restriction on a move, the change is automatically copied to all downstream moves (the next steps in the chain), and the move is re-assigned. This propagation only goes forward, not backward.
The module touches the company settings, the configuration settings screen, and stock moves. It relies on the stock_restrict_lot module for the underlying restriction field.
Depends on
Models and fields (3)
- stock.move · extends an existing modelchange_restrict_lot
- res.company · extends an existing modelenforce_lot_restriction_product_domain (Enforce lot restrictions)
- res.config.settings · extends an existing modelenforce_lot_restriction_product_domain
Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
OCA documentation · Odoo 14.0Usage
Source · Odoo 14.0Go to Settings > Inventory > Enforce lot restrictions
Set a domain for the products for which lot restriction on stock moves should apply (empty domain: all products)
No verified information in OCA: Installation, Configuration.
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.