Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3993 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
okt. 25
1818
0
mar. 25
2033
4
apr. 24
175248
0
dec. 23
2738
5
jul. 25
230972