Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
7608 Tampilan

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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
5
Des 23
22615
0
Apr 16
4017
0
Mar 15
4923
45
Apr 23
85497
8
Des 22
20109