Add click callback on item test tab

This commit is contained in:
Oliver Walters 2021-01-18 21:36:37 +11:00
parent ef7cc3f78d
commit 0a566c062d

View File

@ -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 %}