Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3398 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
mar. 25
1302
1
feb. 25
1086
4
apr. 24
174123
0
dec. 23
2075
5
jul. 25
227723