コンテンツへスキップ
メニュー
この質問にフラグが付けられました
6889 ビュー

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
2829
4
9月 20
6069
0
8月 21
3351
4
8月 21
66966
1
11月 24
1581