Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6583 Vistas

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
Descartar
Mejor respuesta

Hi Alisha:

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

 _order = 'x_sequence'


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 16
5221
1
may 23
3189
0
may 21
3855
0
feb 19
3570
2
may 24
1903