Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3396 Zobrazení

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 25
1298
1
úno 25
1082
4
dub 24
174096
0
pro 23
2069
5
čvc 25
227696