From 3889baf37ab8b21cdd11997f3661d6ef5b4c33f1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 27 Jan 2022 14:25:57 +1100 Subject: [PATCH] Adds a tab for "allocations" --- InvenTree/part/templates/part/detail.html | 12 ++++++++++++ InvenTree/part/templates/part/part_sidebar.html | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index fb92293b3b..9d13f46545 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -37,6 +37,18 @@ +
+
+
+

{% trans "Part Allocations" %}

+ {% include "spacer.html" %} +
+
+
+
+
+
+
diff --git a/InvenTree/part/templates/part/part_sidebar.html b/InvenTree/part/templates/part/part_sidebar.html index f4e59af865..a8f57aa7b0 100644 --- a/InvenTree/part/templates/part/part_sidebar.html +++ b/InvenTree/part/templates/part/part_sidebar.html @@ -27,6 +27,10 @@ {% endif %} {% trans "Pricing" as text %} {% include "sidebar_item.html" with label="pricing" text=text icon="fa-dollar-sign" %} +{% if part.salable or part.component %} +{% trans "Allocations" as text %} +{% include "sidebar_item.html" with label="allocations" text=text icon="fa-bookmark" %} +{% endif %} {% if part.purchaseable and roles.purchase_order.view %} {% trans "Suppliers" as text %} {% include "sidebar_item.html" with label="suppliers" text=text icon="fa-building" %}