diff --git a/InvenTree/company/templates/company/detail_stock.html b/InvenTree/company/templates/company/detail_stock.html index f10a99ba5a..87f88bb550 100644 --- a/InvenTree/company/templates/company/detail_stock.html +++ b/InvenTree/company/templates/company/detail_stock.html @@ -23,7 +23,7 @@ params: { company: {{ company.id }}, part_detail: true, - supplier_detail: true, + supplier_part_detail: true, location_detail: true, }, buttons: [ diff --git a/InvenTree/order/templates/order/po_received_items.html b/InvenTree/order/templates/order/po_received_items.html index 96dcb4fcf7..487dbd1284 100644 --- a/InvenTree/order/templates/order/po_received_items.html +++ b/InvenTree/order/templates/order/po_received_items.html @@ -25,7 +25,7 @@ loadStockTable($("#stock-table"), { params: { purchase_order: {{ order.id }}, part_detail: true, - supplier_detail: true, + supplier_part_detail: true, location_detail: true, }, buttons: [ diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 499aaa6948..6a69be260e 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -265,6 +265,7 @@ {% endif %} part_detail: true, location_detail: true, + supplier_part_detail: true, }, url: "{% url 'api-stock-list' %}", }); diff --git a/InvenTree/templates/js/stock.js b/InvenTree/templates/js/stock.js index fba0fc2913..948c0ff768 100644 --- a/InvenTree/templates/js/stock.js +++ b/InvenTree/templates/js/stock.js @@ -688,6 +688,8 @@ function loadStockTable(table, options) { { field: 'supplier_part', title: '{% trans "Supplier Part" %}', + visible: params['supplier_part_detail'] || false, + switchable: params['supplier_part_detail'] || false, formatter: function(value, row) { if (!value) { return '-';