Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
7870 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
5
dec. 23
22995
0
apr. 16
4348
0
mar. 15
5257
45
apr. 23
86309
8
dec. 22
20513