Skip to Content
Menu
This question has been flagged
1 Reply
6878 Views

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?

Avatar
Discard
Best Answer

Hi Alisha:

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

 _order = 'x_sequence'


Avatar
Discard
Related Posts Replies Views Activity
2
Mar 16
5524
1
May 23
3705
0
May 21
4339
0
Feb 19
4112
2
May 24
2380