Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
4 Vastaukset
10596 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä Paras vastaus

Thanks Ray, I'll check that out.

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

Thanks

Tony


Avatar
Hylkää
Paras vastaus

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
Hylkää
Tekijä

Thanks Ray, I'll check that out.

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

Thanks

Tony

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
heinäk. 21
2091
2
syysk. 25
1694
1
heinäk. 24
1576
2
marrask. 15
4730
2
maalisk. 15
4266