DI
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user