Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3424 มุมมอง

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!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi  asma,

Refer,

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


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

อวตาร
ละทิ้ง
ผู้เขียน

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

ผู้เขียน

Thanks that solved the problem.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
5257
1
ก.พ. 23
1824
0
มิ.ย. 22
1693
1
มิ.ย. 22
2137
0
มิ.ย. 22
2659