Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4209 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

Thanks Andreas

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 20
3733
1
maalisk. 15
3807
1
marrask. 22
2320
1
marrask. 19
2691
2
heinäk. 18
3574