Skip to Content
Menu
This question has been flagged
7449 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
Dec 23
22315
0
Apr 16
3744
0
Mar 15
4731
45
Apr 23
84951
8
Dec 22
19831