2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Adds an endpoint for calling the plugin code to "locate" something

This commit is contained in:
Oliver Walters
2022-05-09 23:42:28 +10:00
parent 9b7c26ec9c
commit 57f3efe758
5 changed files with 135 additions and 2 deletions

View File

@ -520,6 +520,14 @@ $("#barcode-scan-into-location").click(function() {
});
});
{% if plugins_enabled %}
$('#locate-item-button').click(function() {
locateItemOrLocation({
item: {{ item.pk }},
});
});
{% endif %}
function itemAdjust(action) {
inventreeGet(