Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
14090 Näkymät

I created a tree view in xml. How can I specify the field that should be used as sorting field (and add if it should be ascending or descending)? Right now, I think the database ID is used, but I didn't specify that.

 

Avatar
Hylkää
Paras vastaus

Hi,

Odoo is taking "_order" member to manage default order by. So, you have to just manage "_order" member of your model. You will get all data in your list according to that order. thats it. I hope it will help you. 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
toukok. 23
2160
1
huhtik. 23
4007
1
syysk. 23
5326
4
kesäk. 22
14798
0
maalisk. 21
2175