Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4852 Vistas

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
Mejor respuesta

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 Mejor respuesta

Thanks! it worked :)

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 23
1308
1
jul 24
1783
1
jul 23
4248
0
mar 24
3248
1
sept 22
5997