diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 97a4ffb78e..480f2f500d 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -324,9 +324,9 @@ $("#po-table").inventreeTable({ title: '{% trans "MPN" %}', formatter: function(value, row, index, field) { if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) { - return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part.pk}/`); + return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part}/`); } else { - return ""; + return "-"; } }, }, diff --git a/InvenTree/templates/js/company.js b/InvenTree/templates/js/company.js index 18d7408b23..7daa99e1c6 100644 --- a/InvenTree/templates/js/company.js +++ b/InvenTree/templates/js/company.js @@ -539,7 +539,7 @@ function loadSupplierPartTable(table, url, options) { title: '{% trans "MPN" %}', formatter: function(value, row, index, field) { if (value && row.manufacturer_part) { - return renderLink(value, `/manufacturer-part/${row.manufacturer_part.pk}/`); + return renderLink(value, `/manufacturer-part/${row.manufacturer_part}/`); } else { return "-"; }