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

How can I define attributes in a .py with a field different than state?

Inside a .py I can tell a field to be readonly if their state is for example draft:

'name': fields.char( 'Name', readonly=True, states={'draft': [('readonly', False)]}),

how can i do this with a field different to state, for example a boolean 'manual'?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 25
1306
1
лют. 25
1099
4
квіт. 24
174144
0
груд. 23
2082
5
лип. 25
227750