2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 02:55:41 +00:00

PUI: Don't load stock test results for non-trackable part (#7327)

This commit is contained in:
Oliver
2024-05-26 20:50:18 +10:00
committed by GitHub
parent 0c56bd8dfa
commit e8e64616da

View File

@ -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() {