Stock Location Package Restriction
This module adds the option to set restrictions for the packages that can be put in a location.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Set rules on stock locations about whether products must be in packages, and Odoo blocks moves that break those rules.
This module lets you control, per stock location, how packages may be used there. On the location form a new "Restrictions" group offers a Package Restriction choice: leave it empty for no restriction, "Forbidden" to refuse any product that is part of a package, "Mandatory and unique" to require every product to be in a package and allow only one package, or "Mandatory" to require packages but allow several.
When you validate a transfer, Odoo checks the destination location against its rule and raises an error if the move would break it, for example moving a product without a package into a location where packages are mandatory. The same check can be run against what is already stored in the location.
Locations that currently break their own rule are flagged: the location form shows a red warning with a message naming the offending packages or products, the location list shows a violation indicator, and the location search offers a "With package restriction violation" filter. The module extends stock.location and stock.move.
Depends on
Required by other modules
Models and fields (2)
- stock.move · extends an existing model
- stock.location · extends an existing modelpackage_restriction, has_package_restriction_violation, package_restriction_violation_message
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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-warehouse.
terminal Installation and usage
OCA documentation · Odoo 16.0Usage
Source · Odoo 16.0Configure on the location the package restriction.
The options are:
- False (not set): No restriction, the location can contain products with and without package
- Forbidden: The location cannot have products part of a package
- Mandatory and unique: The location cannot have products not part of a package and you cannot have more than 1 package on the location
- Mandatory and not unique: The location cannot have products not part of a package and you may store multiple packages on the location
When the module is installed, by default there is no restriction on the locations.
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.