Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4009 Widoki

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'?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
paź 25
1824
0
mar 25
2054
4
kwi 24
175261
0
gru 23
2756
5
lip 25
231018