Ir al contenido
Menú
Se marcó esta pregunta
3416 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 25
1316
1
feb 25
1110
4
abr 24
174164
0
dic 23
2087
5
jul 25
227795