From c711f3d89757e1a7d3c5884d22d77915c82f1433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 4 Dec 2015 12:44:00 +0100 Subject: [PATCH] [FIX] hr_holidays: display latest leaves first --- addons/hr_holidays/hr_holidays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 346aca17fbc..5927edd8a17 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -122,7 +122,7 @@ class hr_holidays_status(osv.osv): class hr_holidays(osv.osv): _name = "hr.holidays" _description = "Leave" - _order = "type desc, date_from asc" + _order = "type desc, date_from desc" _inherit = ['mail.thread', 'ir.needaction_mixin'] def _employee_get(self, cr, uid, context=None):