Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6602 Visualizações

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
7
jan. 20
31252
0
mar. 15
4135
1
out. 21
2627
0
mar. 15
3468
0
fev. 19
5288