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

HI all, If I understand Odoo's structure correctly, the buttons "Edit" and "Create" shows on the left top side by default. But now what I need is to make whole form view readonly, which means unable to do actions such as edit or create a new record (those buttons are not needed). Even I put readonly attribute to every field, those button are still there.

Is it possible to achieve my requirements? If so, what should can I do? 

And also, what if I want those "Edit" and "Create" buttons are depends on the user (different user group)

Any hint will be useful! Thanks

아바타
취소
베스트 답변

You can try to add security rule or do it through UI, by disabling rights to create and edit. You should only grant read access right.

Goto -> settings -> groups

아바타
취소
작성자

Hi thx for quick reply. As you said, I tried to set up via UI, I went to "Record Rules" but I don't know how to set up the domain filter, Can you explain more about it? For example, my form view's record id is "make_readonly_form_view"

관련 게시물 답글 화면 활동
V17 Tree, Form view 해결 완료
1
3월 25
880
1
10월 24
1206
0
9월 24
2629
2
6월 24
10142
0
4월 22
3095