跳至内容
菜单
此问题已终结
2 回复
4915 查看

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
2130
1
7月 23
4556
0
3月 24
3345
1
9月 22
6271