diff --git a/InvenTree/stock/templates/stock/item_tests.html b/InvenTree/stock/templates/stock/item_tests.html index 11ab443d0c..e2ccf22037 100644 --- a/InvenTree/stock/templates/stock/item_tests.html +++ b/InvenTree/stock/templates/stock/item_tests.html @@ -50,14 +50,9 @@ function reloadTable() { //$("#test-result-table").bootstrapTable("refresh"); } -{% if item.part.has_test_report_templates %} +{% if item.has_test_reports %} $("#test-report").click(function() { - launchModalForm( - "{% url 'stock-item-test-report-select' item.id %}", - { - follow: true, - } - ); + printTestReports([{{ item.pk }}]); }); {% endif %}