Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How to restrict Warehouse access to certain users ?

1 Comment
Avatar
Discard
Avatar
odoo
-

This solution works for the Inventory module, but in the Sales module, when user select the Product he gets the following error:

ValueError: Invalid field stock.location.x_warehouse_id in leaf ('x_warehouse_id', '=', False)


1 Answer
0
Avatar
odoo
Best Answer

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.








3) Create a record rule :

3.1 For the Warehouse


3.2. For the locations 


3.3. For the pickings



Avatar
Discard