Skip to Content
Menu
This question has been flagged
3 Replies
4692 Rodiniai

Error​

Code

i want to hide field not Disable any help 

Portretas
Atmesti
Best Answer

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


Portretas
Atmesti
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>

Portretas
Atmesti
Best Answer

hi 

you can use attrs like below:

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 23
1480
1
rugs. 19
6738
0
gruod. 24
1407
1
geg. 23
10197
3
liep. 17
7317