Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4211 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

Thanks Andreas

Related Posts Odpovědi Zobrazení Aktivita
1
bře 20
3733
1
bře 15
3811
1
lis 22
2321
1
lis 19
2691
2
čvc 18
3575