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

I am using a many2one field x_stage for a statusbar on a custom model. I want to sort the stages based on a field x_sequence, so they appear in a specific order. Right now, they are sorted by the record id. 

Is there a way to change the default sort in the status bar so they appear in the correct order?

الصورة الرمزية
إهمال
أفضل إجابة

Hi Alisha:

Try adding the following in the class definition of your custom Stage class

 _order = 'x_sequence'


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 16
5225
1
مايو 23
3202
0
مايو 21
3876
0
فبراير 19
3573
2
مايو 24
1921