Various changes to support a certain new app

improve inventory support, plus "hiding" person data but still using it
This commit is contained in:
Lance Edgar 2017-08-09 21:41:42 -05:00
parent fcffe0f79d
commit 18f4b4ff5c
7 changed files with 64 additions and 18 deletions

View file

@ -274,6 +274,7 @@ class BatchMasterView(MasterView):
kwargs['created_by'] = batch.created_by
elif batch.created_by_uuid:
kwargs['created_by_uuid'] = batch.created_by_uuid
kwargs['description'] = batch.description
kwargs['notes'] = batch.notes
if hasattr(batch, 'filename'):
kwargs['filename'] = batch.filename

View file

@ -80,6 +80,9 @@ class BatchMasterView2(MasterView2, BatchMasterView):
g.set_renderer('id', self.render_batch_id)
g.set_link('id')
g.set_link('description')
g.set_link('created')
g.set_link('executed')
g.set_label('id', "Batch ID")
g.set_label('created_by', "Created by")