跳至內容
選單
此問題已被標幟
4 回覆
10507 瀏覽次數

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
2032
2
9月 25
1626
1
7月 24
1494
2
11月 15
4648
2
3月 15
4168