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

I want my user should have a privilege to add attachment in customer master form and not to delete that attachment after uploading document. To configure this option i tried in Setting -> Technical -> Security -> Access-Control List and choose ir.attachment user and enable only Read access and untick all other. But not working i can delete attachment. Any other configuration for only add a attachment and not delete the attachment. Or Else any other configuration for achieve these things...

아바타
취소
베스트 답변

Go to

Settings -> Security -> Record rules -> Add rule

image description

아바타
취소
작성자

Thanks.. I will try..

베스트 답변

You need 2 ir_rule according to this answer by Olivier Dony for version 7 and 8: https://bugs.launchpad.net/openobject-addons/+bug/969198

For employee:

['|',('res_model','!=','hr.employee'),('res_id','in',[e.id for e in user.employee_ids])]

For hr manager:

[('res_model','=','hr.employee')]

아바타
취소
관련 게시물 답글 화면 활동
3
4월 15
8470
0
11월 23
2469
1
2월 23
6070
0
3월 22
1667
1
1월 22
6836