From 86bc62d126ff67ba84670888e209a8108982ab69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 31 Jan 2026 17:22:42 +0100 Subject: [PATCH] Display and order by create date/time in error list --- trytond/trytond/ir/error.py | 5 ++++- trytond/trytond/ir/view/error_list.xml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trytond/trytond/ir/error.py b/trytond/trytond/ir/error.py index db7b2c830c..e02f65f2de 100644 --- a/trytond/trytond/ir/error.py +++ b/trytond/trytond/ir/error.py @@ -86,7 +86,10 @@ class Error(Workflow, ModelView, ModelSQL): table, (table.state, Index.Equality(cardinality='low')), where=table.state.in_(['open', 'processing']))) - cls._order = [('id', 'DESC')] + cls._order = [ + ('create_date', 'DESC'), + ('id', 'DESC'), + ] cls._transitions |= { ('open', 'processing'), ('processing', 'solved'), diff --git a/trytond/trytond/ir/view/error_list.xml b/trytond/trytond/ir/view/error_list.xml index 625a551092..addec6f95f 100644 --- a/trytond/trytond/ir/view/error_list.xml +++ b/trytond/trytond/ir/view/error_list.xml @@ -2,6 +2,8 @@ + +