Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7756 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 12 23
22839
0
thg 4 16
4191
0
thg 3 15
5111
45
thg 4 23
85963
8
thg 12 22
20316