Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3971 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Okt 25
1802
0
Mar 25
2028
4
Apr 24
175220
0
Des 23
2734
5
Jul 25
230901