Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4921 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.
 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks! it worked :)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 23
1384
1
ก.ค. 24
2145
1
ก.ค. 23
4568
0
มี.ค. 24
3348
1
ก.ย. 22
6282