跳至內容
選單
此問題已被標幟
1 回覆
4197 瀏覽次數

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
作者

Thanks Andreas

相關帖文 回覆 瀏覽次數 活動
1
3月 20
3731
1
3月 15
3803
1
11月 22
2317
1
11月 19
2685
2
7月 18
3564