Skip to Content
Menu
This question has been flagged
3404 Zobrazenia

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
mar 25
1306
1
feb 25
1094
4
apr 24
174139
0
dec 23
2082
5
júl 25
227744