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

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
1345
1
лют. 25
1143
4
квіт. 24
174210
0
груд. 23
2125
5
лип. 25
227919