تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4905 أدوات العرض

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 :)

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 23
1380
1
يوليو 24
2120
1
يوليو 23
4550
0
مارس 24
3339
1
سبتمبر 22
6263