Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
6627 Visninger

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.

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
7
jan. 20
31283
0
mar. 15
4198
1
okt. 21
2636
0
mar. 15
3483
0
feb. 19
5317