Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4466 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

Thanks Andreas

Powiązane posty Odpowiedzi Widoki Czynność
1
mar 20
4064
1
mar 15
4084
1
lis 22
2603
1
lis 19
2944
2
lip 18
3843