Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
4480 Prikazi

Error​

Code

i want to hide field not Disable any help 

Avatar
Opusti
Best Answer

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


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

hi 

you can use attrs like below:

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 23
1349
1
sep. 19
6529
0
dec. 24
1212
1
maj 23
10023
3
jul. 17
7119