Skip to Content
Menu
This question has been flagged
3 Replies
4594 Zobrazenia

Error​

Code

i want to hide field not Disable any help 

Avatar
Zrušiť
Best Answer

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


Avatar
Zrušiť
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
Zrušiť
Best Answer

hi 

you can use attrs like below:

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
dec 23
1426
1
sep 19
6641
0
dec 24
1321
1
máj 23
10113
3
júl 17
7204