diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 6a61ef2fbf..2f7076c850 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -187,6 +187,15 @@ +
+
+

{% trans "Stock Items" %}

+
+
+ {% include "stock_table.html" %} +
+
+

{% trans "Part Parameters" %}

@@ -223,6 +232,21 @@ {{ block.super }} {% if category %} + + onPanelLoad('stock', function() { + loadStockTable( + $('#stock-table'), + { + params: { + category: {{ category.pk }}, + part_detail: true, + location_detail: true, + supplier_part_detail: true, + } + } + ); + }); + onPanelLoad('parameters', function() { loadParametricPartTable( "#parametric-part-table", diff --git a/InvenTree/part/templates/part/category_sidebar.html b/InvenTree/part/templates/part/category_sidebar.html index 3d945d0433..5468d953ae 100644 --- a/InvenTree/part/templates/part/category_sidebar.html +++ b/InvenTree/part/templates/part/category_sidebar.html @@ -14,6 +14,8 @@ {% include "sidebar_link.html" with url=url text=text icon="fa-file-upload" %} {% endif %} {% if category %} +{% trans "Stock Items" as text %} +{% include "sidebar_item.html" with label='stock' text=text icon='fa-boxes' %} {% trans "Parameters" as text %} {% include "sidebar_item.html" with label="parameters" text=text icon="fa-tasks" %} {% endif %} \ No newline at end of file