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

In Multi copmany i run two completely seperate companies. Is there any way to completely remove access to employees from the other company? You can currently see all employees from both companies in the HR Module, even though I have set up each employee with access to only their own company.

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

Add a new Record rule;

======

Name: Limit employee view by company (or something like that).
Object: Resource Detail

Access rights: Check All (R/W/C/D)

Rule:

[('company_id','in',[user.company_id.id])]

Global: check

======

That should fix it.

Credit to Yash Pancholi (https://www.youtube.com/watch?v=t5pl2igNOx8)

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

Thanks Ray, I'll check that out.

All the employees are set up within departments in their respective companies.

Thanks

Tony


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

company_id exists on Department, not employee.  

Is each Employee assigned to a Deparment at a different company?  (Have not tried, this is just my suggestion).

Usually when you see 'all records' in a multi-company scenario, it is because company_id is False.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Ray, I'll check that out.

All the employees are set up within departments in their respective companies.

Thanks

Tony

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 21
2014
2
thg 9 25
1607
1
thg 7 24
1473
2
thg 11 15
4634
2
thg 3 15
4159