This commit is contained in:
Cayo Puigdefabregas 2022-09-26 11:42:50 +02:00
parent 194fe366fd
commit e589cedb49
1 changed files with 2 additions and 0 deletions

View File

@ -654,6 +654,8 @@ class NewActionView(View):
if lot_id: if lot_id:
return url_for('inventory.lotdevicelist', lot_id=lot_id) return url_for('inventory.lotdevicelist', lot_id=lot_id)
if url_for('inventory.alldevicelist') in request.referrer:
return url_for('inventory.alldevicelist')
return url_for('inventory.devicelist') return url_for('inventory.devicelist')