Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
10633 Widoki

Hello guys!

How could I change the default order of the records in a tree view?

I want to order according to the date column rather than the name column. By default.

Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

Hello, for date fields you can use this example in your model:

_order = 'report_date desc'


Awatar
Odrzuć
Autor Najlepsza odpowiedź

https://www.odoo.com/fr_FR/forum/help-1/question/changing-default-column-sort-in-work-orders-56096

Awatar
Odrzuć