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

I have created a new field in sale order line named as "Price1" and "Price_chk" boolean field in Sale order. The field "Price1" should be invisible in tree view when the field "Price_chk" is False and it should be visible when the field "Price_chk" is True.

アバター
破棄
最善の回答

You can use column_invisible inside attrs, like this

<field name="field_name" attrs="{'column_invisible': [('parent.field', '=', value)]}" />

アバター
破棄
最善の回答

Hi, 

one2many field  in tree  view  inside column hide(parent value)
    like:  attrs="{'column_invisible': [('parent.price_chk', '=', False)]}"

 

アバター
破棄
最善の回答

You can do it with attrs and invisible in the xml.


<field name="Price1" attrs="{'invisible':[('price_chk', '=', False)]}" />
アバター
破棄
著作者

I tried this, but it was not working. Because "attrs" is not working in one2many treeview

最善の回答

Try 

<div attrs="{'invisible':[('price_chk', '=', False)]}">
     <field name="Price1"/>
</div>
アバター
破棄
最善の回答

Hi ayyapan,

one2many list view (column hiding will not work). We can hide only content of column not whole column. so only way to hide is you have to set group permission.


Thanks

Chandran Nepolean

アバター
破棄

no by using column_invisible in attrs we can make a many2one field invisible

関連投稿 返信 ビュー 活動
0
10月 19
8
3
4月 25
4673
5
11月 23
42983
3
9月 23
9469
1
9月 22
3739