콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3758 화면

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!

관련 게시물 답글 화면 활동
1
10월 23
2794
2
4월 16
15562
3
6월 25
1652
2
3월 25
2110
3
7월 24
2758