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

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
7
ม.ค. 20
31317
0
มี.ค. 15
4213
1
ต.ค. 21
2639
0
มี.ค. 15
3507
0
ก.พ. 19
5332