İçereği Atla
Menü
Bu soru işaretlendi
4 Cevaplar
10410 Görünümler

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
Vazgeç
En İyi Yanı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)

Avatar
Vazgeç
Üretici En İyi Yanıt

Thanks Ray, I'll check that out.

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

Thanks

Tony


Avatar
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
Üretici

Thanks Ray, I'll check that out.

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

Thanks

Tony

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 21
1925
1
Haz 25
1427
1
Tem 24
1367
2
Kas 15
4542
2
Mar 15
4069