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

Hi there, I'm looking for a proper record rule for the following case:

User can access his own entry in contacts & user can acces his companies' entry in contacts & user can access his own user profile WITH the functions to change the language and password.

This is what I currently have:

['|', ('type', '!=', 'private'), ('type', '=', False), ('user_ids','in', user.id)]

This user is able to see just his entry in contacts BUT can't properly open the form view on click (...not allowed to access res\.partner\.\.\.record:Administrator\)\ and\ he\ CAN'T\ open\ my\ profile\ under\ the\ top\ right\ user\ icon,\ instead\ gets\ a\ warning\ \(\.\.\.not\ allowed\ to\ access\ res.partner...record:company id)...

SO I guess I have to extend my record rule? Any help is appreciated

アバター
破棄
最善の回答

try to check these egzamples https://odootricks.tips/about/building-blocks/security/record-rules/

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 24
3217
0
1月 24
1551
0
12月 20
2096
1
9月 19
4879
0
6月 17
3141