Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1702 Zobrazení

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?


Avatar
Zrušit

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.

Autor

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"

Related Posts Odpovědi Zobrazení Aktivita
4
čvc 24
4674
0
zář 24
5238
0
pro 21
2197
0
pro 20
2938
1
srp 23
1997