Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6423 Vistas

By default odoo displays products by "Last added" i think that's a natural way to show them, but i need to display them by A to Z order

So i need to know how can i do this, if need to change something in a view, or i need to set a controller

thanks

Avatar
Descartar
Mejor respuesta

Hi Kevin,

Below will work in sorting products A to Z

On the website_sale controller
With this method -->  _get_search_order(self, post) 

you can add the Orders like "post.get('order', 'name asc')"

Thanks.


Avatar
Descartar
Mejor respuesta

Watch one of these Youtube Videos

1. Linux - How to Order Odoo Website Shop Products Alphabetically, https://www.youtube.com/watch?v=kmHIK9T2Ef0

2. Windows - How to Order Odoo Website Shop Products Alphabetically, https://www.youtube.com/watch?v=msfruoLLzb8

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 25
6130
0
nov 23
1290
0
sept 22
803
1
ene 19
4709
3
abr 24
2462