Skip to Content
Menu
This question has been flagged
3 Replies
3553 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
463
1
Sep 19
5642
1
May 23
8802
3
Jul 17
5992
0
Jul 15
2625