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?
Dette spørgsmål er blevet anmeldt
3517
Visninger
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
4
jul. 24
|
6547 | ||
|
|
0
jan. 26
|
8028 | ||
|
|
0
dec. 21
|
4192 | ||
|
|
0
dec. 20
|
4723 | ||
|
|
2
aug. 25
|
5604 |
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"