Display and order by create date/time in error list

This commit is contained in:
Cédric Krier
2026-01-31 17:22:42 +01:00
parent 16ca654159
commit 86bc62d126
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -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'),
+2
View File
@@ -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"/>