Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
7553 Vizualizări

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
5
dec. 23
22543
0
apr. 16
3921
0
mar. 15
4856
45
apr. 23
85384
8
dec. 22
20057