Ir al contenido
Menú
Se marcó esta pregunta
7565 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
5
dic 23
22556
0
abr 16
3945
0
mar 15
4860
45
abr 23
85399
8
dic 22
20063