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

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
22559
0
квіт. 16
3957
0
бер. 15
4882
45
квіт. 23
85412
8
груд. 22
20068