Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
10650 มุมมอง

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

อวตาร
ละทิ้ง