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

Please, you know how to hide margin for sale for specific user? I do not know where I need to change in view sale_view.xml ? I can not get the fields in this view

아바타
취소
베스트 답변

In Version 7.0 and trunk you have to modify in sale_margin -> sale_margin_view.xml

There are two ways to do this :

  1. Using group : Create a group and add all the users to whom you want to display that field and add this group to 'margin' field. Example : <field name="margin" groups="base.group_user"/>

  2. Using attrs : (This is static one) You can use attrs="{'invisible': [('user_id', '=', uid)]}" In place of uid you have to pass the user_id for user you want to hide the field. Example : <field name="margin" attrs="{'invisible': [('user_id', '=', 1)]}"/>

아바타
취소