diff --git a/InvenTree/order/api.py b/InvenTree/order/api.py index 0148a3c29f..8c333734ed 100644 --- a/InvenTree/order/api.py +++ b/InvenTree/order/api.py @@ -893,8 +893,10 @@ class SOAllocationList(generics.ListAPIView): shipment__shipment_date=None, ) else: - queryset = queryset.exclude(line__order__status__in=SalesOrderStatus.OPEN) - queryset = queryset.exclude(shipment__shipment_date=None) + queryset = queryset.exclude( + line__order__status__in=SalesOrderStatus.OPEN, + shipment__shipment_date=None + ) return queryset diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index d01c7d1073..670d10cf34 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -47,23 +47,6 @@ {% endif %} -
-
-
-

{% trans "Part Stock Allocations" %}

- {% include "spacer.html" %} -
-
-
-
-
- {% include "filter_list.html" with id="allocations" %} -
-
-
-
-
-
@@ -675,19 +658,6 @@ {% endif %} }); - // Load the "allocations" tab - onPanelLoad('allocations', function() { - - loadStockAllocationTable( - $("#part-allocation-table"), - { - params: { - part: {{ part.pk }}, - }, - } - ); - }); - // Load the "related parts" tab onPanelLoad("related-parts", function() { diff --git a/InvenTree/part/templates/part/part_sidebar.html b/InvenTree/part/templates/part/part_sidebar.html index 4458a5b681..e20c19d4f3 100644 --- a/InvenTree/part/templates/part/part_sidebar.html +++ b/InvenTree/part/templates/part/part_sidebar.html @@ -30,10 +30,6 @@ {% trans "Pricing" as text %} {% include "sidebar_item.html" with label="pricing" text=text icon="fa-dollar-sign" %} {% endif %} -{% 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" %}