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

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
22587
0
квіт. 16
4006
0
бер. 15
4915
45
квіт. 23
85479
8
груд. 22
20096