跳至內容
選單
此問題已被標幟
2 回覆
4912 瀏覽次數

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 :)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 23
1384
1
7月 24
2128
1
7月 23
4556
0
3月 24
3343
1
9月 22
6270