Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3690 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

Thanks!

Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 23
2692
2
apr. 16
15436
3
jun. 25
1483
2
mrt. 25
1990
3
jul. 24
2648