mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PUI: Don't load stock test results for non-trackable part (#7327)
This commit is contained in:
parent
0c56bd8dfa
commit
e8e64616da
@ -233,6 +233,7 @@
|
|||||||
|
|
||||||
{% settings_value "TEST_STATION_DATA" as test_station_fields %}
|
{% settings_value "TEST_STATION_DATA" as test_station_fields %}
|
||||||
|
|
||||||
|
{% if item.part.trackable %}
|
||||||
loadStockTestResultsTable(
|
loadStockTestResultsTable(
|
||||||
$("#test-result-table"), {
|
$("#test-result-table"), {
|
||||||
part: {{ item.part.id }},
|
part: {{ item.part.id }},
|
||||||
@ -244,6 +245,7 @@
|
|||||||
$("#test-report").click(function() {
|
$("#test-report").click(function() {
|
||||||
printReports('stockitem', [{{ item.pk }}]);
|
printReports('stockitem', [{{ item.pk }}]);
|
||||||
});
|
});
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if user.is_staff %}
|
{% if user.is_staff %}
|
||||||
$("#delete-test-results").click(function() {
|
$("#delete-test-results").click(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user