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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1699
Tampilan
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
4
Jul 24
|
4671 | ||
|
0
Sep 24
|
5233 | ||
|
0
Des 21
|
2196 | ||
|
0
Des 20
|
2938 | ||
|
1
Agu 23
|
1993 |
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"