İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4193 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Thanks Andreas

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 20
3717
1
Mar 15
3783
1
Kas 22
2310
1
Kas 19
2677
2
Tem 18
3549