Skip to Content
मेन्यू
This question has been flagged
3 Replies
4695 Views

Error​

Code

i want to hide field not Disable any help 

Avatar
Discard
Best Answer

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


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

hi 

you can use attrs like below:

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

Avatar
Discard
Related Posts Replies Views Activity
1
दिस॰ 23
1480
1
सित॰ 19
6739
0
दिस॰ 24
1409
1
मई 23
10208
3
जुल॰ 17
7333