[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) <yti@odoo.com>
This commit is contained in:
Laurent Stukkens (LTU)
2020-11-17 13:37:49 +00:00
parent b6e1261b37
commit 94909c3f0f
@@ -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">
<button name="action_open_contract_form" type="object" icon="fa-external-link"/>