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: {