Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
4481 Zobrazení

Error​

Code

i want to hide field not Disable any help 

Avatar
Zrušit
Nejlepší odpověď

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


Avatar
Zrušit
Nejlepší odpověď

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šit
Nejlepší odpověď

hi 

you can use attrs like below:

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 23
1349
1
zář 19
6529
0
pro 24
1212
1
kvě 23
10024
3
čvc 17
7119