Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3720 Vizualizări

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.


Imagine profil
Abandonează
Cel mai bun răspuns

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'

Imagine profil
Abandonează
Autor

Thanks!

Related Posts Răspunsuri Vizualizări Activitate
1
oct. 23
2733
2
apr. 16
15492
3
iun. 25
1583
2
mar. 25
2032
3
iul. 24
2687