Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3710 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

Thanks!

Related Posts Odpovědi Zobrazení Aktivita
1
říj 23
2725
2
dub 16
15485
3
čvn 25
1569
2
bře 25
2019
3
čvc 24
2679