Skip to Content
मेन्यू
This question has been flagged
7577 Views

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
Discard
Related Posts Replies Views Activity
5
दिस॰ 23
22559
0
अप्रैल 16
3954
0
मार्च 15
4878
45
अप्रैल 23
85409
8
दिस॰ 22
20067