Skip to Content
Menu
This question has been flagged
7584 Rodiniai

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
5
gruod. 23
22559
0
bal. 16
3958
0
kov. 15
4888
45
bal. 23
85412
8
gruod. 22
20069