Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2911 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 24
3258
0
gen 24
1561
0
dic 20
2107
1
set 19
4907
0
giu 17
3155