Warehouse Location & Operation Restriction
by Community of Accountants https://www.communityofaccountants.com$ 98.65
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) |
| Lines of code | 381 |
| Technical Name |
coa_location_restrictions |
| License | AGPL-3 |
| Website | https://www.communityofaccountants.com |
Warehouse Location & Operation Restriction
Enforce strict user-level access controls on warehouse locations, stock zones, and picking operation types. Recursive authorization, ORM-level filtering, and active validation guards, all natively inside Odoo.
Granular Warehouse Security: Built Into Every Odoo User Form
In warehouse logistics, not every employee should access every stock row or location. This module embeds multi-level warehouse location rules directly into Odoo's native ORM search hook level, completely isolating unauthorized operations and stock views.
Three Layers of Strict Restrictions
Control exactly what warehouse locations, warehouses, and picking operation types each user can see and validate.
Recursive Location Paths
Assign a parent stock location and automatically grant access to all its child shelves, rows, and bins, without mapping each one.
Picking Operation Scope
Scope users to specific operation types (Receipts, Deliveries, Internal Transfers) and hide all others. Clear separation of duties.
ORM-Level Fast Querying
Restrictions are injected at the Odoo ORM _search hook, not in view filters. Zero performance lag even with massive inventories.
Validation Interceptor Guard
Attempts to validate a stock transfer involving restricted locations are blocked with a clear warning, even through external APIs.
Warehouse Access Filter
Restrict which warehouses a user can view. Filtered at the search query level, restricted warehouses are completely hidden.
Per-User Independent Profile
Every user has their own restriction profile. Administrator accounts bypass all restrictions by default to prevent lockdowns.
Security Management in Odoo
Simulated view of the User Settings and the Location Validation Interceptor in action.
Amgad Samir
Inventory Operator / DispatchEverything Built Into the Module
No third-party services, no external APIs, entirely native Odoo architecture.
Warehouse Search Filtering
Filters the stock.warehouse model at the ORM search hook layer. Restricted users only see authorized warehouses.
Recursive Child Location Grant
Assigning a parent location automatically includes all its sub-locations recursively, with no need to map every individual shelf.
Operation Type Scoping
Limit users to specific picking operations. All other operations are hidden from their view and interface.
Picking Validation Guard
Backend write hooks block stock.picking validations if source or destination locations are outside allowed zones.
Stock Quant Level Masking
Filters the stock.quant model at query level. Restricted employees only see on-hand quantities for permitted locations.
Odoo 19 _search Hook Architecture
Built using v19 ORM _search override pattern: the correct, performance-safe approach for modern Odoo.
Technical Specifications
Built entirely with native Odoo APIs, no external services or third-party dependencies.
| Odoo Compatibility | Odoo 19.0 (Community & Enterprise) Certified |
| Dependencies | stock mail |
| License | AGPL-3: Free to use and modify with attribution |
| Core Technologies | Python models · XML views · ORM Hooks · Security Rules |
| Publisher | Community of Accountants · communityofaccountants.com |
COA is a premium Odoo systems integrator specializing in corporate ERP implementations, custom module development, financial automation, and inventory management systems across the MENA region.
Please log in to comment on this module