2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Merge branch 'master' of https://github.com/inventree/InvenTree into instance-name-in-title

This commit is contained in:
2021-04-17 12:19:38 +02:00
60 changed files with 2579 additions and 218 deletions

View File

@ -181,6 +181,13 @@ $("#po-table").inventreeTable({
sortName: 'part__MPN',
field: 'supplier_part_detail.MPN',
title: '{% trans "MPN" %}',
formatter: function(value, row, index, field) {
if (row.supplier_part_detail.manufacturer_part) {
return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part.pk}/`);
} else {
return "";
}
},
},
{
sortable: true,