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

Can I use the syntax as condition1.type1 and condition2.type1 in the field of view xml?
if condition1 and condition2 have the type1 attribute?

<field name="name" attrs="{'invisible': [('condition1.type1', '=', False)], 'required': [('condition2.type1', '=', True)]}"/>

アバター
破棄
最善の回答

Hello, if it's still problem. You can use context.


context="{'default_type_1': condition1.type1, 'default_type_2': condition2.type1}"
invisible="context.get('default_type_1', False)"
required="context.get('default_type_2')=='default_type_2_value'"
アバター
破棄
関連投稿 返信 ビュー 活動
1
10月 22
9673
1
3月 15
12042
6
9月 17
8183
2
3月 15
9935
1
3月 15
4427