details:   https://code.tryton.org/tryton/commit/0a667448a4dd
branch:    default
user:      Cédric Krier <[email protected]>
date:      Sat Jan 31 17:22:42 2026 +0100
description:
        Display and order by create date/time in error list
diffstat:

 trytond/trytond/ir/error.py            |  5 ++++-
 trytond/trytond/ir/view/error_list.xml |  2 ++
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 3b3531bafbda -r 0a667448a4dd trytond/trytond/ir/error.py
--- a/trytond/trytond/ir/error.py       Thu Jan 22 23:15:21 2026 +0100
+++ b/trytond/trytond/ir/error.py       Sat Jan 31 17:22:42 2026 +0100
@@ -86,7 +86,10 @@
                 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 -r 3b3531bafbda -r 0a667448a4dd trytond/trytond/ir/view/error_list.xml
--- a/trytond/trytond/ir/view/error_list.xml    Thu Jan 22 23:15:21 2026 +0100
+++ b/trytond/trytond/ir/view/error_list.xml    Sat Jan 31 17:22:42 2026 +0100
@@ -2,6 +2,8 @@
 <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
 this repository contains the full copyright notices and license terms. -->
 <tree>
+    <field name="create_date" widget="date" string="Date"/>
+    <field name="create_date" widget="time" string="Time"/>
     <field name="rec_name" string="Origin" expand="1"/>
     <field name="summary" expand="2"/>
     <field name="state"/>

Reply via email to