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

I'm trying to order values displayed inside selection field (source_id for crm.lead model for this example) via odoo Studio or view_extension, is there a way to sort it ASC or DESC?


아바타
취소

This is available for other similar selection options, so it is technically possible. You'd need to add a sequence field to utm.source and then sort using that. I'm sure someone else can explain in detail.

작성자

Thanks for your answer Chris.

Indeed one way is to add sequence field, but what I want to achieve is not that.

I believe that currently the values inside the one2many field are ordered by id, what I want to achieve is order them by name asc.

If I would query it, it should be like that: ORDER BY name ASC"

관련 게시물 답글 화면 활동
4
7월 24
4919
0
9월 24
5458
0
12월 21
2387
0
12월 20
3096
2
8월 25
3792