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

user have access only as warehouse manager ,how to disable update button in inventory tab in product form login as warehouse manager

아바타
취소
베스트 답변

HI Veena,

You may restrict a button , field and other form contents with using the group attribute in that field/button, So only a provided group or groups may see or not see that field/button in the xml view of model, according to your provided condition in the xml code.

I am going to give you a sample example for this maybe it will help ... ""<button name="action_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" groups="account.group_account_manager"/> ""

here only the person or users belong to this group account_manager will have access to this button. Similarly you can go for your requirement. Hope it will help.

아바타
취소
작성자

where we write this code

This is just a sample line code you may also use similar code ""group attribute with your button field in xml.

작성자

only the admin wants to enable the update button

관련 게시물 답글 화면 활동
0
3월 15
3556
0
3월 15
3699
2
5월 24
6690
1
1월 20
6334
2
7월 17
7680