콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
9125 화면

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

아바타
취소

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

베스트 답변

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

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



아바타
취소
작성자 베스트 답변

Hi Pawan,

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

how can i solved this?

아바타
취소
베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
Record Rule 해결 완료
1
6월 16
4593
1
5월 16
6083
1
1월 16
5518
1
7월 19
585
2
7월 17
4134