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

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.

관련 게시물 답글 화면 활동
1
3월 15
5280
1
2월 23
1836
0
6월 22
1708
1
6월 22
2143
0
6월 22
2665