コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4385 ビュー

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
3903
1
3月 15
4006
1
11月 22
2526
1
11月 19
2869
2
7月 18
3722