Skip to Content
Menu
This question has been flagged
1 Odpoveď
4144 Zobrazenia

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

Avatar
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
dec 19
4081
4
jan 24
23114
2
jan 24
2423
2
dec 23
14665
0
okt 23
33