Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4181 Weergaven

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

Avatar
Annuleer
Beste antwoord

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.

Avatar
Annuleer
Auteur

Thanks Andreas

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 20
3686
1
mrt. 15
3756
1
nov. 22
2295
1
nov. 19
2648
2
jul. 18
3516