跳至内容
菜单
此问题已终结
7598 查看

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
22580
0
4月 16
4001
0
3月 15
4910
45
4月 23
85470
8
12月 22
20091