Make sure user sees "receive row" page on mobile, after scanning UPC

was still redirecting to "view row" which is sort of deprecated now...
This commit is contained in:
Lance Edgar 2019-04-01 13:31:57 -05:00
parent 53917e9bf5
commit 49017fda39

View file

@ -1546,7 +1546,7 @@ class ReceivingBatchView(PurchasingBatchView):
def redirect_after_quick_row(self, row, mobile=False): def redirect_after_quick_row(self, row, mobile=False):
if mobile: if mobile:
return self.redirect(self.get_row_action_url('view', row, mobile=mobile)) return self.redirect(self.get_row_action_url('receive', row, mobile=mobile))
return super(ReceivingBatchView, self).redirect_after_quick_row(row, mobile=mobile) return super(ReceivingBatchView, self).redirect_after_quick_row(row, mobile=mobile)
def get_row_image_url(self, row): def get_row_image_url(self, row):