diff --git a/InvenTree/company/templates/company/manufacturer_part_suppliers.html b/InvenTree/company/templates/company/manufacturer_part_suppliers.html index 0d39516a7b..e650e02e9c 100644 --- a/InvenTree/company/templates/company/manufacturer_part_suppliers.html +++ b/InvenTree/company/templates/company/manufacturer_part_suppliers.html @@ -77,9 +77,9 @@ loadSupplierPartTable( params: { part: {{ part.part.id }}, manufacturer_part: {{ part.id }}, - part_detail: true, + part_detail: false, supplier_detail: true, - manufacturer_detail: true, + manufacturer_detail: false, }, } ); diff --git a/InvenTree/part/templates/part/manufacturer.html b/InvenTree/part/templates/part/manufacturer.html index 9bb29c9e93..7643d4d996 100644 --- a/InvenTree/part/templates/part/manufacturer.html +++ b/InvenTree/part/templates/part/manufacturer.html @@ -81,7 +81,7 @@ { params: { part: {{ part.id }}, - part_detail: true, + part_detail: false, manufacturer_detail: true, }, } diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index 1093129412..313d48f0ad 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -85,7 +85,7 @@ { params: { part: {{ part.id }}, - part_detail: true, + part_detail: false, supplier_detail: true, manufacturer_detail: true, }, diff --git a/InvenTree/templates/js/company.js b/InvenTree/templates/js/company.js index 50f26b9d98..27115f19e1 100644 --- a/InvenTree/templates/js/company.js +++ b/InvenTree/templates/js/company.js @@ -133,10 +133,11 @@ function loadManufacturerPartTable(table, url, options) { switchable: false, }, { + visible: params['part_detail'], + switchable: params['part_detail'], sortable: true, field: 'part_detail.full_name', title: '{% trans "Part" %}', - switchable: false, formatter: function(value, row, index, field) { var url = `/part/${row.part}/`; @@ -230,10 +231,11 @@ function loadSupplierPartTable(table, url, options) { switchable: false, }, { + visible: params['part_detail'], + switchable: params['part_detail'], sortable: true, field: 'part_detail.full_name', title: '{% trans "Part" %}', - switchable: false, formatter: function(value, row, index, field) { var url = `/part/${row.part}/`; @@ -280,6 +282,8 @@ function loadSupplierPartTable(table, url, options) { } }, { + visible: params['manufacturer_detail'], + switchable: params['manufacturer_detail'], sortable: true, field: 'manufacturer', title: '{% trans "Manufacturer" %}', @@ -296,6 +300,8 @@ function loadSupplierPartTable(table, url, options) { } }, { + visible: params['manufacturer_detail'], + switchable: params['manufacturer_detail'], sortable: true, field: 'MPN', title: '{% trans "MPN" %}',