Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4920 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur Meilleure réponse

Thanks! it worked :)

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
août 23
1384
1
juil. 24
2141
1
juil. 23
4566
0
mars 24
3347
1
sept. 22
6281