Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4135 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 19
4065
4
led 24
23103
2
led 24
2414
2
pro 23
14649
0
říj 23
33