跳至內容
選單
此問題已被標幟
1 回覆
4143 瀏覽次數

How can I make a field (M2o) invisible if it doesn't contain any values?

頭像
捨棄
最佳答案

Hi,
If your Many2one field is ‘partner_id’. Then you can set ‘invisible’ attribute inside ‘attrs’ like this in your xml file.

<field name="partner_id" attrs="{'invisible':[('partner_id', '=', False)]}"/>

Regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 19
4081
4
1月 24
23114
2
1月 24
2422
2
12月 23
14665
0
10月 23
33