This question has been flagged
1 Reply
5328 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