| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 82 |
| Technical Name |
warehouse_user_restriction |
| License | LGPL-3 |
| Website | https://github.com/haythamafify |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 82 |
| Technical Name |
warehouse_user_restriction |
| License | LGPL-3 |
| Website | https://github.com/haythamafify |
Warehouse User Restriction
Control which warehouses each user can see and work with
Key Features
Per-User Warehouse Assignment
Assign one or more warehouses to every user directly from the standard Users form in Settings.
Record-Rule Based Security
All restrictions are enforced via Odoo native record rules â no custom code executed at runtime.
What Is Restricted?
| Model | Technical Name | Restriction Basis |
|---|---|---|
| Warehouses | stock.warehouse | Directly assigned warehouse IDs |
| Transfers / Pickings | stock.picking | Operation-type warehouse or source/destination location tree |
| Stock Quants | stock.quant | Location under allowed warehouse view location |
| Locations | stock.location | Child of allowed warehouse view location |
Configuration
- Go to Settings > Users & Companies > Users.
- Open a user record.
- In the Access Rights tab, find the Warehouse Restrictions section.
- Select the warehouses the user should be able to access.
- Save and ask the user to re-login.
Note: System administrators (base.group_system) are always unrestricted.
Author
Haytham Afify
haythamgamal6@gmail.com
|
GitHub: github.com/haythamafify
|
LinkedIn: linkedin.com/in/haytham-gamal-4165797a
Please log in to comment on this module