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

I would like to make base filed to be a sortable field. Only my knowledge is to check indexed then it will work after restarting odoo service. let's say I want to make "_last_updated" filed to indexed field. so that I will tick the indexed check box to make it sortable. then i need to restart the server and update the one of the base module that taking long time.

Is it the right way or can you suggest some suitable way?

Avatar
Hylkää
Paras vastaus

Hi,

You can do this in tree view like this.

<tree default_order="your_field_name desc"> for descending order

default_order="your_field_name asc" for ascending order

Thanks

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 17
3791
2
helmik. 21
6633
2
elok. 17
5036
0
lokak. 18
6407
1
elok. 17
3201