Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6882 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
5527
1
may 23
3721
0
may 21
4344
0
feb 19
4121
2
may 24
2396