コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4918 ビュー

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
2136
1
7月 23
4564
0
3月 24
3347
1
9月 22
6277