From 224092e192c5b45fe22ea88428bb81719ac00d71 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 9 May 2022 23:44:58 +1000 Subject: [PATCH] Fix typo --- InvenTree/InvenTree/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/api.py b/InvenTree/InvenTree/api.py index 368f414da6..d5c9e6b38e 100644 --- a/InvenTree/InvenTree/api.py +++ b/InvenTree/InvenTree/api.py @@ -178,7 +178,7 @@ class LocatePluginView(APIView): elif location_pk: try: - location = StockItem.objects.get(pk=location_pk) + location = StockLocation.objects.get(pk=location_pk) offload_task('plugin.registry.call_function', plugin, 'locate_stock_location', location_pk)