Fix some mobile view URLs

This commit is contained in:
Lance Edgar 2018-01-11 12:38:44 -06:00
parent 4147752672
commit 0e0ebe9251
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ class InventoryBatchView(BatchMasterView):
self.handler.add_row(batch, row)
self.Session.flush()
return self.redirect(self.mobile_row_route_url('view', uuid=row.uuid))
return self.redirect(self.mobile_row_route_url('view', uuid=row.batch_uuid, row_uuid=row.uuid))
def template_kwargs_view_row(self, **kwargs):
row = kwargs['instance']

View file

@ -258,7 +258,7 @@ class ReceivingBatchView(PurchasingBatchView):
self.handler.refresh_batch_status(batch)
self.Session.flush()
return self.redirect(self.mobile_row_route_url('view', uuid=row.uuid))
return self.redirect(self.mobile_row_route_url('view', uuid=row.batch_uuid, row_uuid=row.uuid))
def mobile_view_row(self):
"""