Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
8792 Vizualizări

Hi, i want to show record in object res.users only user with the same login. i have use this code for record rules

[('user_id','=', user.id)] but its doesnt work and users not show with error message


AccessErrorThe requested operation cannot be completed due to security restrictions. Please contact your system administrator.(Document type: res.users, Operation: read)

Anyone can help me please? how i solve this problem.Thanks before

Imagine profil
Abandonează

Susi,
Is field user_id exist in your object?
on which object are u trying to keep this rule?

Cel mai bun răspuns

use domain force and apply it's condition given in below.for showing only his record

[('id','=',user.id)]



Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hi Pawan,

i just realized field user_id doesnt exist in res.users.

how can i solved this?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Rule seems correct, hope the problem is the logged-in user don't have the access right to read res.users object. Please check access rules of res.users object for that user role.


Hope this helps.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
Record Rule Rezolvat
1
iun. 16
4362
1
mai 16
5737
1
ian. 16
5250
1
iul. 19
585
2
iul. 17
3901