Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4194 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

Thanks Andreas

Publications associées Réponses Vues Activité
1
mars 20
3725
1
mars 15
3792
1
nov. 22
2316
1
nov. 19
2683
2
juil. 18
3560