Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7581 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to set a statusbar color? แก้ไขแล้ว
5
ธ.ค. 23
22559
0
เม.ย. 16
3957
0
มี.ค. 15
4882
45
เม.ย. 23
85410
8
ธ.ค. 22
20068