Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4919 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

Thanks! it worked :)

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 23
1384
1
čvc 24
2141
1
čvc 23
4566
0
bře 24
3347
1
zář 22
6281