Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
7833 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
5
груд. 23
22950
0
квіт. 16
4317
0
бер. 15
5217
45
квіт. 23
86170
8
груд. 22
20448