diff --git a/InvenTree/templates/js/translated/company.js b/InvenTree/templates/js/translated/company.js index 10eee69f48..c1ae9ba0d4 100644 --- a/InvenTree/templates/js/translated/company.js +++ b/InvenTree/templates/js/translated/company.js @@ -146,7 +146,7 @@ function supplierPartFields(options={}) { } /* - * Launch a form to create a new ManufacturerPart + * Launch a form to create a new SupplierPart */ function createSupplierPart(options={}) { @@ -194,11 +194,26 @@ function createSupplierPart(options={}) { } }; + var header = ''; + if (options.part) { + var part_model = {}; + inventreeGet(`/api/part/${options.part}/.*`, {}, { + async: false, + success: function(response) { + part_model = response; + } + }); + header = constructLabel('Base Part', {}); + header += renderPart('header', part_model); + header += `