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

Hi,

I want to hide field from one2many fields(tree view) based on parent view field value, how can i do this?

Thanks

アバター
破棄
最善の回答

Hi
Please refer the code given below,

<field name="field_name" attrs="{'column_invisible': [('parent.parent_field_name,'=',False)]}"/>
// Single condition
<field name="field_name" attrs="{'column_invisible': (['|', ('parent.parent_field_name_1','=', condition), ('parent.parent_field_name_2', '=',condition)])}"/>
//Multiple condition

Regards

アバター
破棄
最善の回答

Having same issue.It doesn't seem possible to me. You need to create another form view. or probably field_view_arch can do job but even if it can do , I would prefer to write another view.

アバター
破棄
関連投稿 返信 ビュー 活動
1
1月 25
1711
2
9月 22
9434
2
4月 22
4461
0
7月 21
7150
1
3月 21
4857