From 94909c3f0f87a48fe8f8a50c858de2b177f472cb Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Sun, 8 Nov 2020 14:04:49 +0000 Subject: [PATCH] [FIX] hr_contract: order contract_ids by date_start desc in hr_contract_history Prior to this commit: * The contract_ids one2many widget in the hr_contract_history form was not sorted desc. After this commit: * The contract_ids one2many widget in the hr_contract_history form is correctly sorted desc. related PR's: odoo/enterprise#14647, odoo/upgrade#1939 closes odoo/odoo#61512 Signed-off-by: Yannick Tivisse (yti) --- addons/hr_contract/report/hr_contract_history_report_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_contract/report/hr_contract_history_report_views.xml b/addons/hr_contract/report/hr_contract_history_report_views.xml index e40cdb6c4ae..bda3d1e888f 100644 --- a/addons/hr_contract/report/hr_contract_history_report_views.xml +++ b/addons/hr_contract/report/hr_contract_history_report_views.xml @@ -74,7 +74,7 @@ decoration-primary="state == 'open'" decoration-muted="state == 'close'" decoration-bf="id == parent.contract_id" - default_order = "date_start DESC, state DESC" + default_order = "date_start desc, state desc" editable="bottom" no_open="1">