mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Remove redundant table on Part page
This commit is contained in:
parent
6ca61e2cd7
commit
e691536a84
@ -893,8 +893,10 @@ class SOAllocationList(generics.ListAPIView):
|
|||||||
shipment__shipment_date=None,
|
shipment__shipment_date=None,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
queryset = queryset.exclude(line__order__status__in=SalesOrderStatus.OPEN)
|
queryset = queryset.exclude(
|
||||||
queryset = queryset.exclude(shipment__shipment_date=None)
|
line__order__status__in=SalesOrderStatus.OPEN,
|
||||||
|
shipment__shipment_date=None
|
||||||
|
)
|
||||||
|
|
||||||
return queryset
|
return queryset
|
||||||
|
|
||||||
|
@ -47,23 +47,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class='panel panel-hidden' id='panel-allocations'>
|
|
||||||
<div class='panel-heading'>
|
|
||||||
<div class='d-flex flex-wrap'>
|
|
||||||
<h4>{% trans "Part Stock Allocations" %}</h4>
|
|
||||||
{% include "spacer.html" %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class='panel-content'>
|
|
||||||
<div id='allocations-button-toolbar'>
|
|
||||||
<div class='btn-group' role='group'>
|
|
||||||
{% include "filter_list.html" with id="allocations" %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<table class='table table-striped table-condensed' data-toolbar='#allocations-button-toolbar' id='part-allocation-table'></table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class='panel panel-hidden' id='panel-test-templates'>
|
<div class='panel panel-hidden' id='panel-test-templates'>
|
||||||
<div class='panel-heading'>
|
<div class='panel-heading'>
|
||||||
<div class='d-flex flex-wrap'>
|
<div class='d-flex flex-wrap'>
|
||||||
@ -675,19 +658,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Load the "allocations" tab
|
|
||||||
onPanelLoad('allocations', function() {
|
|
||||||
|
|
||||||
loadStockAllocationTable(
|
|
||||||
$("#part-allocation-table"),
|
|
||||||
{
|
|
||||||
params: {
|
|
||||||
part: {{ part.pk }},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Load the "related parts" tab
|
// Load the "related parts" tab
|
||||||
onPanelLoad("related-parts", function() {
|
onPanelLoad("related-parts", function() {
|
||||||
|
|
||||||
|
@ -30,10 +30,6 @@
|
|||||||
{% trans "Pricing" as text %}
|
{% trans "Pricing" as text %}
|
||||||
{% include "sidebar_item.html" with label="pricing" text=text icon="fa-dollar-sign" %}
|
{% include "sidebar_item.html" with label="pricing" text=text icon="fa-dollar-sign" %}
|
||||||
{% endif %}
|
{% 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 %}
|
{% if part.purchaseable and roles.purchase_order.view %}
|
||||||
{% trans "Suppliers" as text %}
|
{% trans "Suppliers" as text %}
|
||||||
{% include "sidebar_item.html" with label="suppliers" text=text icon="fa-building" %}
|
{% include "sidebar_item.html" with label="suppliers" text=text icon="fa-building" %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user