Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
14095 Представления

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.

 

Аватар
Отменить
Лучший ответ

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. 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
мая 23
2167
1
апр. 23
4013
1
сент. 23
5335
4
июн. 22
14804
0
мар. 21
2183