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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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