Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
8001 Lượt xem

I am dealing with a hospital where I want to restrict users/staff members of a department (for example, pharmacy) to view only the products related to pharmacy and not other. 


so this way, we will allocate product categories to the user from "user management. 

Is there any solution or module for it? 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

There is a way to do so.

You can add product category (m2o field) in User and create one record rule so that user can access only those category of products he belongs to.

Sudhir Arya
ERP Harbor Consulting Services
Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I recommend to create particular groups for which certain product categories are allocated using record rules and assign these groups to the users. 

You can control to each user what categories he can see and this way modifying the access to any user becomes very flexible and easy without having to do any new customisation to standard Odoo. 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

@Sudhir Arya,


Don't we already have a field named product category in odoo? can we play with that field for it? 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
user creation Đã xử lý
1
thg 6 21
2559
2
thg 3 18
7644
2
thg 7 25
1089
3
thg 12 24
13205
2
thg 11 24
1336