Skip to Content
Menú
This question has been flagged
2 Respostes
4853 Vistes

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
Descartar
Best Answer

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
Descartar
Autor Best Answer

Thanks! it worked :)

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’ag. 23
1312
1
de jul. 24
1785
1
de jul. 23
4252
0
de març 24
3249
1
de set. 22
5998