Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3678 Переглядів

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.


Аватар
Відмінити
Найкраща відповідь

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'

Аватар
Відмінити
Автор

Thanks!

Related Posts Відповіді Переглядів Дія
1
жовт. 23
2679
2
квіт. 16
15427
3
черв. 25
1466
2
бер. 25
1953
3
лип. 24
2639