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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.