From 1bf483b0472c53fc44df082a1d0889be08322c8a Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 7 Jun 2018 00:29:28 +0200 Subject: [PATCH] [FIX] website_event_track: Properly sort tracks on website with P3 On Python 3, dict.keys() doesn't return a list, so we can't sort it, but converting to a list on the fly before calling to sort() is not going to change the original dict_keys object. Storing directly the list in the variable, we get the expected result. Side note: the daylist2 variable is there just for the t-set and was already present in the code. Renaming it to dummy would be clearer but that should not be done in stable. Closes #25113. --- addons/website_event_track/views/event_track_templates.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_event_track/views/event_track_templates.xml b/addons/website_event_track/views/event_track_templates.xml index 70ed14e680a..dbfceeb8ca6 100644 --- a/addons/website_event_track/views/event_track_templates.xml +++ b/addons/website_event_track/views/event_track_templates.xml @@ -50,8 +50,8 @@ - - + +