Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4943 Visninger

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

Avatar
Kassér
Bedste svar

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.
 

Avatar
Kassér
Forfatter Bedste svar

Thanks! it worked :)

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
aug. 23
1390
1
jul. 24
2191
1
jul. 23
4602
0
mar. 24
3363
1
sep. 22
6292