Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1717 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ

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.

Tác giả

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"

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 7 24
4720
0
thg 9 24
5269
0
thg 12 21
2204
0
thg 12 20
2940
1
thg 8 23
2030