Skip to Content
Menú
This question has been flagged
3 Respostes
4498 Vistes

Error​

Code

i want to hide field not Disable any help 

Avatar
Descartar
Best Answer

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


Avatar
Descartar
Best Answer

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
Best Answer

hi 

you can use attrs like below:

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de des. 23
1358
1
de set. 19
6544
0
de des. 24
1230
1
de maig 23
10048
3
de jul. 17
7132