Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Record rule res.user

By
Susi
on 6/6/16, 4:33 AM 644 views

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?

Pawan
on 6/6/16, 6:07 AM
0
Susi
On 6/8/16, 3:11 AM

Hi Pawan,

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

how can i solved this?

0

Baiju

--Baiju--
3154
| 5 4 8
Kochi, India
--Baiju--
ODOO technical and functional

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

Baiju
On 6/6/16, 7:48 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/6/16, 4:33 AM
Seen: 644 times
Last updated: 6/8/16, 3:11 AM