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

Hi

How can I sort attribute values shown on the website. For example, I am using an attribute width with values 347, 397, and 447 but they are shown in the order 397, 447, 347 (in order I created these products). I am using Odoo 14.


Avatar
Descartar
Mejor respuesta

You will need to create a custom Module. See the documentation for how to do that.

from odoo import models

class ProductAttributevalue(models.Model):
    _inherit = 'product.attribute.value'
    _order = 'name asc'

Avatar
Descartar
Autor

Thanks!

Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 23
2677
2
abr 16
15425
3
jun 25
1463
2
mar 25
1947
3
jul 24
2638