Se rendre au contenu
Menu
Cette question a été signalée
7839 Vues

I have a statusbar like that :

<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done" statusbar_colors='{"refused":"red"}'/>

I want to change the statusbar_visible value if the state is refused.

Is it possible ? If yes, how can i do that ?

I've begin with that : attrs="{'statusbar_visible': [('status','=','refused')]}" but this isn't gonna work.

Avatar
Ignorer
Publications associées Réponses Vues Activité
5
déc. 23
22958
0
avr. 16
4317
0
mars 15
5222
45
avr. 23
86191
8
déc. 22
20451