From 8dd8e69c055cb1d4bd41f71d3a002fb503cae8e6 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 28 Sep 2020 19:34:43 +1000 Subject: [PATCH] Add "installed parts" tab for stock item --- InvenTree/stock/templates/stock/tabs.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/InvenTree/stock/templates/stock/tabs.html b/InvenTree/stock/templates/stock/tabs.html index 1e6e9ddb3b..72da8a5cf2 100644 --- a/InvenTree/stock/templates/stock/tabs.html +++ b/InvenTree/stock/templates/stock/tabs.html @@ -38,4 +38,12 @@ {% trans "Children" %}{% if item.child_count > 0 %}{{ item.child_count }}{% endif %} {% endif %} - \ No newline at end of file + {% if item.installedItemCount > 0 %} +
  • + + {% trans "Installed Parts" %} + {{ item.installedItemCount }} + +
  • + {% endif %} +