Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
4507 Vistas

Error​

Code

i want to hide field not Disable any help 

Avatar
Descartar
Mejor respuesta

Hi,

please try column_invisible instead of invisible

eg:  attrs="{'column_invisible': [('parent.scope','in',('out_invoice')]')]]}"

Thanks !!!  

Aswini @ iWesabe


Avatar
Descartar
Mejor respuesta

If you inherit parent view, you can use override attributes method.

For example:

<xpath expr="//field[@name='<name of field>']" position='attributes'>

<attribute name='attrs'>{'invisible': '1'}</attribute>

</xpath>

Avatar
Descartar
Mejor respuesta

hi 

you can use attrs like below:

attrs="{'invisible': [('state','not in','done')]}" or attrs="{'invisible': [('state','in',['done','cancelled'])]}"

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 23
1362
1
sept 19
6558
0
dic 24
1236
1
may 23
10053
3
jul 17
7136