Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
4868 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

Thanks! it worked :)

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 23
1337
1
Jul 24
1809
1
Jul 23
4274
0
Mar 24
3271
1
Sep 22
6015