Skip to Content
Menú
This question has been flagged
3562 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
2
d’ag. 25
1323
0
de març 25
1550
4
d’abr. 24
174426
0
de des. 23
2305
5
de jul. 25
228671