Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
4513 Vues

Error​

Code

i want to hide field not Disable any help 

Avatar
Ignorer
Meilleure réponse

Hi,

please try column_invisible instead of invisible

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

Thanks !!!  

Aswini @ iWesabe


Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

hi 

you can use attrs like below:

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
déc. 23
1364
1
sept. 19
6565
0
déc. 24
1242
1
mai 23
10054
3
juil. 17
7140