Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4933 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 22
3912
2
มี.ค. 25
6165
2
ม.ค. 22
4055
0
ต.ค. 21
2370
0
ก.ค. 21
2678