跳至內容
選單
此問題已被標幟
7555 瀏覽次數

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
22543
0
4月 16
3921
0
3月 15
4856
45
4月 23
85384
8
12月 22
20057