Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4397 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Thanks Andreas

Post Terkait Replies Tampilan Aktivitas
1
Mar 20
3918
1
Mar 15
4009
1
Nov 22
2531
1
Nov 19
2874
2
Jul 18
3743