DI
This commit is contained in:
@@ -32,6 +32,7 @@ class Incoming(metaclass=PoolMeta):
|
|||||||
('weight_report', "Weight Report"))
|
('weight_report', "Weight Report"))
|
||||||
cls.type.selection.append(
|
cls.type.selection.append(
|
||||||
('controller', "Controller"))
|
('controller', "Controller"))
|
||||||
|
cls._order = [('create_date', 'DESC')]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_results(cls):
|
def _get_results(cls):
|
||||||
@@ -67,6 +68,11 @@ class Incoming(metaclass=PoolMeta):
|
|||||||
return None
|
return None
|
||||||
return create_date.date()
|
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):
|
def get_result_notes(self, name=None):
|
||||||
result = getattr(self, 'result', None)
|
result = getattr(self, 'result', None)
|
||||||
if not result:
|
if not result:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
this repository contains the full copyright notices and license terms. -->
|
this repository contains the full copyright notices and license terms. -->
|
||||||
<data>
|
<data>
|
||||||
<xpath expr="/tree/field[@name='name']" position="before">
|
<xpath expr="/tree/field[@name='name']" position="before">
|
||||||
<field name="created_at"/>
|
<field name="created_at" width="80"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="/tree/field[@name='result']" position="after">
|
<xpath expr="/tree/field[@name='result']" position="after">
|
||||||
<field name="result_notes" expand="2"/>
|
<field name="result_notes" expand="2"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user