From e8e64616da22300f501553eae38e9d711eb0d52d Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 26 May 2024 20:50:18 +1000 Subject: [PATCH] PUI: Don't load stock test results for non-trackable part (#7327) --- src/backend/InvenTree/stock/templates/stock/item.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/InvenTree/stock/templates/stock/item.html b/src/backend/InvenTree/stock/templates/stock/item.html index ab647bb795..fe6b95e4ab 100644 --- a/src/backend/InvenTree/stock/templates/stock/item.html +++ b/src/backend/InvenTree/stock/templates/stock/item.html @@ -233,6 +233,7 @@ {% settings_value "TEST_STATION_DATA" as test_station_fields %} + {% if item.part.trackable %} loadStockTestResultsTable( $("#test-result-table"), { part: {{ item.part.id }}, @@ -244,6 +245,7 @@ $("#test-report").click(function() { printReports('stockitem', [{{ item.pk }}]); }); + {% endif %} {% if user.is_staff %} $("#delete-test-results").click(function() {