Skip to Content
Menú
This question has been flagged
3688 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
1517
0
de març 25
1728
4
d’abr. 24
174733
0
de des. 23
2444
5
de jul. 25
229675