İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3685 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

Thanks!

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eki 23
2687
2
Nis 16
15431
3
Haz 25
1479
2
Mar 25
1972
3
Tem 24
2643