콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
10605 화면

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.

아바타
취소
베스트 답변

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)

아바타
취소
작성자 베스트 답변

Thanks Ray, I'll check that out.

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

Thanks

Tony


아바타
취소
베스트 답변

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.

아바타
취소
작성자

Thanks Ray, I'll check that out.

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

Thanks

Tony

관련 게시물 답글 화면 활동
0
7월 21
2095
2
9월 25
1701
1
7월 24
1588
2
11월 15
4741
2
3월 15
4274