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

Hello i tryed to use widget handler to my custom module. Everything seems ok i can drag things around but then i click save all the order goes back to normal. Any ideas?

Regards Darius

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

In your XML, you would have enabled the handle widget on a certain field. In your .py file, mention that field in _order , (usually included after _columns) :

_order='your_field_name'

You might also want to specify a default value for it:

_defaults={'your_field_name':2}

Let me know if it doesn't work.
 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks! it worked :)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 23
1385
1
thg 7 24
2161
1
thg 7 23
4576
0
thg 3 24
3354
1
thg 9 22
6286