This commit is contained in:
2026-04-21 19:19:01 +02:00
parent c203e1b300
commit 77a5366622
2 changed files with 7 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ class Incoming(metaclass=PoolMeta):
('weight_report', "Weight Report"))
cls.type.selection.append(
('controller', "Controller"))
cls._order = [('create_date', 'DESC')]
@classmethod
def _get_results(cls):
@@ -67,6 +68,11 @@ class Incoming(metaclass=PoolMeta):
return None
return create_date.date()
@classmethod
def order_created_at(cls, tables):
table, _ = tables[None]
return [table.create_date]
def get_result_notes(self, name=None):
result = getattr(self, 'result', None)
if not result:

View File

@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='name']" position="before">
<field name="created_at"/>
<field name="created_at" width="80"/>
</xpath>
<xpath expr="/tree/field[@name='result']" position="after">
<field name="result_notes" expand="2"/>