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

I'm trying to create a rule so that a particular group could only see leaves (requests and summary) from people under their own department.

The syntax in creating a Rule Definition (Domain Filter) is [('field name','operator','value')] am I right? Which fields can I use? I want to be able to get the logged-in user's department then use that value to control which leaves would show.

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

you can use this in Rule Definition inside Group : [('department_id','=',user.context_department_id.id)]

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 1 20
31306
0
thg 3 15
4213
1
thg 10 21
2639
0
thg 3 15
3503
0
thg 2 19
5331