Skip to Content
Menu
This question has been flagged
1 Atsakyti
4211 Rodiniai

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

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 19
4145
4
saus. 24
23218
2
saus. 24
2516
2
gruod. 23
14798
0
spal. 23
33