コンテンツへスキップ
メニュー
この質問にフラグが付けられました
7560 ビュー

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.

アバター
破棄
関連投稿 返信 ビュー 活動
5
12月 23
22548
0
4月 16
3940
0
3月 15
4858
45
4月 23
85393
8
12月 22
20060