تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
8822 أدوات العرض

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
يونيو 16
4376
1
مايو 16
5792
1
يناير 16
5273
1
يوليو 19
585
2
يوليو 17
3952