From 35fbb910e851e09a1d3b886e9823edb25043ac47 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 9 May 2022 23:45:29 +1000 Subject: [PATCH] Enable button for locating a StockLocation --- InvenTree/stock/templates/stock/location.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 1e4f144107..ee27c6fe23 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -215,6 +215,14 @@ {% block js_ready %} {{ block.super }} + {% if plugins_enabled and location %} + $('#locate-location-button').click(function() { + locateItemOrLocation({ + location: {{ location.pk }}, + }); + }); + {% endif %} + onPanelLoad('sublocations', function() { loadStockLocationTable($('#sublocation-table'), { params: {