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

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
4468
4
1月 24
23820
2
1月 24
2871
2
12月 23
15506
0
10月 23
33