How can I make a field (M2o) invisible if it doesn't contain any values?
Se marcó esta pregunta
1
Responder
5861
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
2
dic 19
|
5807 | ||
|
|
1
abr 26
|
4641 | ||
|
|
4
ene 24
|
26384 | ||
|
Attrs attribute
Resuelto
|
|
2
ene 24
|
4792 | |
|
Odoo Mail Sending Limit
Resuelto
|
|
2
dic 23
|
18976 |