From 3708c7982ee689ffaf4243ca762ba2e2e112e341 Mon Sep 17 00:00:00 2001 From: Philippe Wauthy Date: Mon, 30 Aug 2021 15:47:52 +0000 Subject: [PATCH] [FIX] planning: fix sorting of records in Gantt view Steps to reproduce: Open the gantt view and add a few shifts for different resources Observed behavior: https://nimb.ws/1t38Jl resources are not sorted by alphabetical order Expected behavior: https://nimb.ws/NqIAG3 resources should be sorted by alphabetical order task-2633936 closes odoo/odoo#76621 X-original-commit: 9c4ed2bcadc417a2927877902c4c275e5d9d16d5 Signed-off-by: Yannick Tivisse (yti) Signed-off-by: LTU-Odoo --- addons/resource/models/resource.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/resource/models/resource.py b/addons/resource/models/resource.py index 840d11fd0ad..fbf7386033d 100644 --- a/addons/resource/models/resource.py +++ b/addons/resource/models/resource.py @@ -862,6 +862,7 @@ class ResourceCalendarAttendance(models.Model): class ResourceResource(models.Model): _name = "resource.resource" _description = "Resources" + _order = "name" @api.model def default_get(self, fields):