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

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
6月 22
3565
2
3月 25
5688
2
1月 22
3704
0
10月 21
2064
0
7月 21
2239