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

I am using odoo 10 enterprise version and i created a many2one field in which autocomplete is default behavior. I want that "Create and edit" option only for administrator.

What is the possible way to do this using odoo studio OR debug mode ?

아바타
취소
베스트 답변

Hi Ahsan,

We have develop access-rights for the user to allow user to "Create and Edit" or not.

Please check below link:

https://youtu.be/9Dqf6LkVMj4


Thanks

아바타
취소
작성자

Thanks Sir for your time and video with detailed description, but i am unable to see "Can Access" checkbox in my user setting also i think you added domain filter on each many2one field. Can you share that domain so that it become more clear

베스트 답변

A simple way is to add in field attributes in xml view: 

<field name="myname" ... options="{'no_create_edit': True}" ... />

no_quick_create  to remove create...
no_create_edit  to remove create and edit...

Another way is to create a user group to define permissions and then add groups="mygroup" in attrs field.

아바타
취소
작성자

I think "no_quick_create" would hide that option from everyone . I want to show that option only to administrator

작성자

and i don't want to hide field i think second option would hide field from other users which are not in allowed group.

관련 게시물 답글 화면 활동
0
6월 18
2567
0
5월 18
3279
2
3월 24
1643
0
8월 22
2356
1
7월 22
20044