Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4 Besvarelser
10609 Visninger

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.

Avatar
Kassér
Bedste svar

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)

Avatar
Kassér
Forfatter Bedste svar

Thanks Ray, I'll check that out.

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

Thanks

Tony


Avatar
Kassér
Bedste svar

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.

Avatar
Kassér
Forfatter

Thanks Ray, I'll check that out.

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

Thanks

Tony

Related Posts Besvarelser Visninger Aktivitet
0
jul. 21
2099
2
sep. 25
1708
1
jul. 24
1590
2
nov. 15
4744
2
mar. 15
4278