Stock Location Lockdown
The aim of this module is to provide a way to mark internal locations where product storage is disallowed. This feature is versatile and can be used in various scenarios, such as:
- Temporarily blocking stock movement to specific locations.
- Preventing stock from being stored in locations not meant for physical storage.
Indeed, in complex warehouse setups, we may have a complicated tree of internal locations with parent locations only used to create the hierarchy of the internal locations. We may want to avoid to put stock on these parent internal locations since they are not physical locations, they just represent a zone of the warehouse. Theses locations must have Location Type set to Internal Location because they belong to a warehouse (they can't be configured with Location Type set to View, cf Odoo bug #26679). With this module, you will be able to enable a new option Block stock entrance for these locations.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets you flag an internal location as blocked for stock, so Odoo refuses to put products there. Useful to stop stock being stored in zone or parent locations that are not real storage spots.
This module adds a simple on/off option on locations so you can forbid storing products in them.
Where it appears: - On the location form, right after the Location Type field, a new checkbox "Block stock entrance" appears. It is only visible when the location type is Internal Location.
What it does: - When the box is checked, any attempt to place a product in that location is rejected with an error message naming the location and the product. This applies to stock quantities, so moves that would end up storing goods there are blocked. - You cannot switch the option on for a location that already holds stock: Odoo first clears empty (zero) quantity records, and if real quantities remain it shows an error saying the location already contains products.
Business use: - Temporarily freeze a location during a reorganisation or count. - Prevent goods from being dropped on parent locations that only exist to build the warehouse hierarchy (zones) and are not physical storage places.
It touches the location settings and the stock quantity records (stock.location and stock.quant). No new menus, reports or scheduled jobs are added; everything happens through the existing location form and the normal stock operations.
Depends on
Models and fields (2)
- stock.quant · extends an existing model
- stock.location · extends an existing modelblock_stock_entrance
Text generated by AI (DeepSeek) from reading the Odoo 19.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: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-warehouse.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0- Once the module is installed, select any internal location for which you want to prevent stock entrance and check the box Block Stock Entrance. Then, you won't be allow to add stock on these 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.