From 219fd1da4137104e565494ca3c2e5990519246f5 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 16 Mar 2022 23:39:21 +1100 Subject: [PATCH] Template fixes for part sidebar display --- InvenTree/part/templates/part/part_sidebar.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/part/templates/part/part_sidebar.html b/InvenTree/part/templates/part/part_sidebar.html index e20c19d4f3..3c1c647f86 100644 --- a/InvenTree/part/templates/part/part_sidebar.html +++ b/InvenTree/part/templates/part/part_sidebar.html @@ -17,7 +17,9 @@ {% if part.assembly %} {% trans "Bill of Materials" as text %} {% include "sidebar_item.html" with label="bom" text=text icon="fa-list" %} +{% endif %} {% if roles.build.view %} +{% if part.assembly or part.component %} {% trans "Build Orders" as text %} {% include "sidebar_item.html" with label="build-orders" text=text icon="fa-tools" %} {% endif %}