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

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
23014
0
квіт. 16
4389
0
бер. 15
5295
45
квіт. 23
86395
8
груд. 22
20552