Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
7562 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
5
Dez. 23
22550
0
Apr. 16
3941
0
März 15
4858
45
Apr. 23
85397
8
Dez. 22
20060