From 072d0317aa9207dfb22dc0d8d333e89bc5305714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 20 Apr 2026 10:41:45 +0200 Subject: [PATCH] Use a list of selection values to enable sorting in the filter window Closes #14785 --- tryton/tryton/gui/window/view_form/view/screen_container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tryton/tryton/gui/window/view_form/view/screen_container.py b/tryton/tryton/gui/window/view_form/view/screen_container.py index 34f6e9b0c5..0ca477a43b 100644 --- a/tryton/tryton/gui/window/view_form/view/screen_container.py +++ b/tryton/tryton/gui/window/view_form/view/screen_container.py @@ -627,10 +627,10 @@ class ScreenContainer(object): for selection in selections: entry.append_text(selection) elif field['type'] in ['selection', 'multiselection']: - selections = tuple(x[1] for x in field['selection']) + selections = [x[1] for x in field['selection']] if field.get('sort', True): selections.sort(key=operator.itemgetter(1)) - entry = Selection(selections) + entry = Selection(tuple(selections)) entry.set_vexpand(True) elif field['type'] in ('date', 'datetime', 'time'): date_format = common.date_format(