Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
10644 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

_order = 'report_date desc'


Avatar
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona