Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3680 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Thanks!

Post Terkait Replies Tampilan Aktivitas
1
Okt 23
2682
2
Apr 16
15428
3
Jun 25
1472
2
Mar 25
1957
3
Jul 24
2640