Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
7765 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
5
dec. 23
22848
0
apr. 16
4199
0
mar. 15
5114
45
apr. 23
85966
8
dec. 22
20317