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.
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!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
1
Apr 26
|
3997 | |||
|
2
Apr 16
|
17593 | |||
|
3
Jun 25
|
3705 | |||
|
2
Mar 25
|
3649 | |||
|
3
Jul 24
|
4136 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.