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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 10 23
|
2550 | ||
|
2
thg 4 16
|
15187 | ||
|
3
thg 6 25
|
1245 | ||
|
2
thg 3 25
|
1712 | ||
|
3
thg 7 24
|
2428 |