Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
7558 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
5
pro 23
22547
0
dub 16
3938
0
bře 15
4857
45
dub 23
85388
8
pro 22
20059