Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3698 Widoki

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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'

Awatar
Odrzuć
Autor

Thanks!

Powiązane posty Odpowiedzi Widoki Czynność
1
paź 23
2699
2
kwi 16
15457
3
cze 25
1496
2
mar 25
2002
3
lip 24
2659