mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	PUI: Don't load stock test results for non-trackable part (#7327)
This commit is contained in:
		@@ -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() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user