Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4957 Представления

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

Аватар
Отменить
Лучший ответ

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.
 

Аватар
Отменить
Автор Лучший ответ

Thanks! it worked :)

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
авг. 23
1397
1
июл. 24
2197
1
июл. 23
4616
0
мар. 24
3371
1
сент. 22
6299