Skip to Content
Menu
This question has been flagged
3 Replies
4614 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
Dec 23
1431
1
Sep 19
6653
0
Dec 24
1349
1
May 23
10132
3
Jul 17
7225