Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3697 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

Thanks!

Post correlati Risposte Visualizzazioni Attività
1
ott 23
2696
2
apr 16
15449
3
giu 25
1489
2
mar 25
1997
3
lug 24
2653