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

In hr.employee , only HR manager and HR Officer group users have access to edit the records.

My requirement is, Related users can edit the private information section of their employee record only and also view all other employee information.

  

How to achieve this.

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

You can add a record rule with the following domain,

[('user_id','=',user.id)]

Thanks

الصورة الرمزية
إهمال
الكاتب

If i do this then the user wont be able to view other employee records. My requirement is the user can view other records but cant edit them. Edit permission is only for the related employee record.

define the another rule for the others, with the above domain allow read, write. WIth new domain give only read permission

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 22
3568
2
مارس 25
5692
2
يناير 22
3707
0
أكتوبر 21
2066
0
يوليو 21
2242