跳至內容
選單
此問題已被標幟
2 回覆
10647 瀏覽次數

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

頭像
捨棄
最佳答案

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

_order = 'report_date desc'


頭像
捨棄
作者 最佳答案

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

頭像
捨棄