|How to restrict Warehouse access to certain users|
How to give access to certain warehouses to a specific user ?
> The idea is to limit the access to all the data of that warehouse.
1) Create a new field x_warehouse on model "res.users"
2) On the user, edit the form view and add the bold code (tag enables to choose multiple warehouses) in the inherited view created with Studio:
Only take the bold code in the following path.
<xpath expr="//field[@name='company_id']" position="after">
<field name="x_warehouse_ids" widget="many2many_tags"/>
3) Create a record rule :
3.1 For the Warehouse
3.2. For the locations
3.3. For the pickings