Fix some mobile view URLs
This commit is contained in:
parent
4147752672
commit
0e0ebe9251
|
@ -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']
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue