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

Error​

Code

i want to hide field not Disable any help 

아바타
취소
베스트 답변

Hi,

please try column_invisible instead of invisible

eg:  attrs="{'column_invisible': [('parent.scope','in',('out_invoice')]')]]}"

Thanks !!!  

Aswini @ iWesabe


아바타
취소
베스트 답변

If you inherit parent view, you can use override attributes method.

For example:

<xpath expr="//field[@name='<name of field>']" position='attributes'>

<attribute name='attrs'>{'invisible': '1'}</attribute>

</xpath>

아바타
취소
베스트 답변

hi 

you can use attrs like below:

attrs="{'invisible': [('state','not in','done')]}" or attrs="{'invisible': [('state','in',['done','cancelled'])]}"

아바타
취소
관련 게시물 답글 화면 활동
1
12월 23
1486
1
9월 19
6747
0
12월 24
1415
1
5월 23
10221
3
7월 17
7381