Fix rendering of "handheld batches" field for inventory batch view

This commit is contained in:
Lance Edgar 2019-09-04 10:33:15 -05:00
parent 79be69f8c1
commit 2185182eee

View file

@ -263,11 +263,11 @@ class InventoryBatchView(BatchMasterView):
f.remove_field('complete')
def render_handheld_batches(self, inventory_batch, field):
items = ''
items = []
for handheld in inventory_batch._handhelds:
text = handheld.handheld.id_str
url = self.request.route_url('batch.handheld.view', uuid=handheld.handheld_uuid)
items += HTML.tag('li', c=tags.link_to(text, url))
items.append(HTML.tag('li', c=[tags.link_to(text, url)]))
return HTML.tag('ul', c=items)
def row_editable(self, row):