跳至内容
菜单
此问题已终结
1 回复
4127 查看

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
4055
4
1月 24
23082
2
1月 24
2407
2
12月 23
14645
0
10月 23
33