Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4856 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can add a record rule with the following domain,

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 22
3833
2
thg 3 25
6036
2
thg 1 22
3975
0
thg 10 21
2278
0
thg 7 21
2583