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

I am modifying a view through inheritance. I want to change an existing field and turn it invisible if other field values false. I know how to do it in the original module:

<field name="street" attrs="{'invisible':[('is_company', '!=', 'True')]}"/>

And I know how to make the field invisible from the view created by me, through inheritance:

<xpath expr="/form//field[@name='street']" position="attributes">
    <attribute name="invisible">1</attribute>
</xpath>

Anyone knows how to manage this? I would appreciate any help. Thank you in advance!

But what I need is to "mix" both options, something like this:

<xpath expr="/form//field[@name='street']" position="attributes">
    <attribute name="invisible">
[('is_company', '!=', 'True')]</attribute>
</xpath>

I will appreciate any help. Thank you in advance!

아바타
취소
관련 게시물 답글 화면 활동
2
5월 24
2557
4
9월 20
5903
0
8월 21
3260
4
8월 21
66549
1
11월 24
1404