From 1a07ae0936215f720a2f1d726f78d5a7c96c77ce Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 16 Dec 2020 15:48:41 +1100 Subject: [PATCH] Render link rather than just text --- InvenTree/templates/js/part.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/part.js b/InvenTree/templates/js/part.js index 8c00625dfc..d27c32024a 100644 --- a/InvenTree/templates/js/part.js +++ b/InvenTree/templates/js/part.js @@ -608,7 +608,9 @@ function loadPartTestTemplateTable(table, options) { return html; } else { - return '{% trans "This test is defined for a parent part" %}'; + var text = '{% trans "This test is defined for a parent part" %}'; + + return renderLink(text, `/part/${row.part}/tests/`); } } }