Skip to Content
Menu
This question has been flagged
2 Replies
4926 Rodiniai

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

Portretas
Atmesti
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.
 

Portretas
Atmesti
Autorius Best Answer

Thanks! it worked :)

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
rugp. 23
1385
1
liep. 24
2155
1
liep. 23
4573
0
kov. 24
3352
1
rugs. 22
6283