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

How is possible make record rule by hr.department? For example John can see ONLY orders where order owner is in same department as John?

Thanks

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

Without coding this is not possible.

Record Rules are based on the current user (res.user) and the department is stored in the employee (hr.employee). In the user there is not field which relates to the employee and therefore it is not possible to create a record rule for your requirement.

It would be possible if you add a function-field to the res.user object which returns the related employee.

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

Thanks Andreas

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 20
3709
1
thg 3 15
3780
1
thg 11 22
2308
1
thg 11 19
2675
2
thg 7 18
3543