Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
7574 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
5
dez. 23
22558
0
abr. 16
3949
0
mar. 15
4877
45
abr. 23
85405
8
dez. 22
20065