This module allows you to define whether a Serial Number/lot is blocked or not. The default value can be set on the Product Category, in the field "Block new Serial Numbers/lots". Is possible to specify in a location if locked lots are allowed to move there.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you mark Serial Numbers/lots as blocked so they cannot be used in stock moves, with a default blocking rule per product category and an option to allow blocked lots into specific locations.
This module adds a "Blocked" flag on Serial Numbers/lots (stock.lot). A blocked lot cannot be moved: when a stock move line is completed, Odoo raises an error if the lot is blocked and the destination location does not allow blocked lots.
- On product categories you get "Block new Serial Numbers/lots": when checked, any new lot created for products in that category (or its parent categories) is automatically created as blocked.
- On locations you get an option to allow receipt of blocked lots, so you can still move blocked lots into designated areas.
- On the lot form and list you see the "Blocked" field, and the lot search view adds a "Locked" filter and a "Blocked" grouping option.
- Blocking or unblocking a lot requires the security group "Allow to block/unblock Serial Numbers/Lots"; users without it get an access error. It is also refused if the lot has reserved quantities.
- Changing the product on a lot re-applies the category rule, and blocking/unblocking is tracked in the chatter with dedicated messages.
The module touches product.category, stock.location, stock.lot and stock.move.line.
Depends on
Models and fields (4)
- stock.lot · new modellocked (Blocked), product_id
- stock.location · extends an existing modelallow_locked
- stock.move.line · extends an existing model
- product.category · extends an existing modellot_default_locked (Block new Serial Numbers/lots)
Text generated by AI (DeepSeek) from reading the Odoo 18.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: 5 confirmed, 4 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0To allow a user to block or unblock a Lot:
- Open the user settings (menu "Settings \> Users & Companies \> Users")
- In the "Inventory" section, check the box "Allow to block/unblock Serial Numbers/Lots" (if not visible, enable debug mode)
To allow move locked lots to a location:
- Open the locations (menu "Inventory \> Configuration \> Warehouse Management \> Locations")
- Select a location and tick the checkbox "Allow Locked"
Usage
Source · Odoo 18.0To use this module, you need to:
- Go to Inventory \> Products \> Lots/Serial Numbers
- Select one 'Lot/Serial Number' and check 'Blocked' field
- Now you cannot move that 'Lot/Serial Number' to any location that does not have the 'Allow Locked' field checked
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.