Se rendre au contenu
Menu
Cette question a été signalée
3378 Vues

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
Ignorer
Publications associées Réponses Vues Activité
0
mars 25
1284
1
févr. 25
1065
4
avr. 24
174026
0
déc. 23
2053
5
juil. 25
227614