Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
7789 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
5
dec. 23
22872
0
apr. 16
4213
0
mrt. 15
5128
45
apr. 23
85987
8
dec. 22
20326