Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4332 Prikazi

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

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
dec. 19
4235
4
jan. 24
23412
2
jan. 24
2610
2
dec. 23
15036
0
okt. 23
33