Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
4536 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
1385
1
sept 19
6588
0
dic 24
1268
1
may 23
10077
3
jul 17
7160