Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4986 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.
 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks! it worked :)

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 23
1419
1
lip 24
2235
1
lip 23
4656
0
mar 24
3396
1
wrz 22
6334