Skip to Content
Menú
This question has been flagged
7597 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
5
de des. 23
22579
0
d’abr. 16
4000
0
de març 15
4909
45
d’abr. 23
85468
8
de des. 22
20088