Skip to Content
Menu
This question has been flagged
3570 Rodiniai

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'?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
rugp. 25
1326
0
kov. 25
1550
4
bal. 24
174432
0
gruod. 23
2309
5
liep. 25
228704