Display and order by create date/time in error list
This commit is contained in:
@@ -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,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"/>
|
||||
|
||||
Reference in New Issue
Block a user