From 9c1c008f335d6cbdd7bd76eee8497a7c3ce1bd16 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 25 May 2019 23:50:24 +1000 Subject: [PATCH] Show attachments for the Template part under attachments tab --- InvenTree/part/templates/part/attachments.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/InvenTree/part/templates/part/attachments.html b/InvenTree/part/templates/part/attachments.html index d0ccaf122d..3e28a31140 100644 --- a/InvenTree/part/templates/part/attachments.html +++ b/InvenTree/part/templates/part/attachments.html @@ -36,6 +36,20 @@ {% endfor %} +{% if part.variant_of and part.variant_of.attachments.count > 0 %} + + + Attachments for template part {{ part.variant_of.full_name }} + + +{% for attachment in part.variant_of.attachments.all %} + + {{ attachment.basename }} + {{ attachment.comment }} + + +{% endfor %} +{% endif %} {% endblock %}