Skip to Content
मेन्यू
This question has been flagged
1 Reply
4666 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
दिस॰ 19
4638
4
जन॰ 24
24067
2
जन॰ 24
2981
2
दिस॰ 23
15788
0
अक्तू॰ 23
33