تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
10564 أدوات العرض

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
يوليو 21
2072
2
سبتمبر 25
1668
1
يوليو 24
1558
2
نوفمبر 15
4699
2
مارس 15
4217