Skip to Content
Menu
This question has been flagged

Hello,


I installed management system from odoo apps store and I want to add a field where I can choose who is the user that can see the form view I created. How can I do that? What is the rule I should use? May anyone help! 

Waiting for reply!


Thanks in adnvance!

Avatar
Discard
Best Answer

Hi  asma,

Refer,

https://odootricks.tips/about/building-blocks/security/record-rules/


https://www.youtube.com/watch?v=p8gj1dEfYUM

Avatar
Discard
Author

Hi Kiran K,

Thanks alot! This was really helpfull in showing the allowed documents. But when I try to open the form view it shows me an error.

This is the error:

Sorry, you are not allowed to access documents of type 'Document Page' (document.page). This operation is allowed for the groups:

- Knowledge/Editor

- Knowledge/Knowledge user

- Knowledge/Manager - (Operation: read, User: 806)

is is my code:

See allowed documents
User can see allowed documents.

see his own documents

['|','|',('allowed_user_ids','in', [user.id]),('user_id','=',user.id),('user_id','=',False)]

When I unactive the group everything goes normal. So may you help in solving this issue.

Thanks in advance!

Only users with access to Knowledge/Editor, Knowledge/Knowledge user, or Knowledge/Manager has the access to view 'Document Page' records.

Goto Settings/Technical/Record Rules and Check the rule set for 'Document Page' (document.page).

Check which rule violates in 'Document Page' model and rectify or give - Knowledge/Editor, Knowledge/Knowledge user, or Knowledge/Manager access to the current user from Settings/Users

Author

Thanks that solved the problem.

Related Posts Replies Views Activity
1
Mar 15
4038
1
Feb 23
737
0
Jun 22
795
1
Jun 22
1079
0
Jun 22
1305