Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3406 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
1306
1
thg 2 25
1094
4
thg 4 24
174139
0
thg 12 23
2082
5
thg 7 25
227745