Skip to Content
Menu
This question has been flagged
1 Reply
3033 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 19
3263
4
Jan 24
20562
2
Jan 24
766
2
Dec 23
11993
0
Oct 23
33