İçereği Atla
Menü
Bu soru işaretlendi
7573 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
5
Ara 23
22557
0
Nis 16
3946
0
Mar 15
4863
45
Nis 23
85401
8
Ara 22
20063