Fixed supplier part list bug and hide manufacturer fields in supplier part edit form

This commit is contained in:
eeintech committed 2021-04-07 11:50:11 -04:00
1 parent c0691c3e9b
commit ccd35fc4b4
2 files changed
+9 -1

No files matched your search

+5 -1
View File
@@ -306,7 +306,11 @@ function loadSupplierPartTable(table, url, options) {
field: 'MPN',
title: '{% trans "MPN" %}',
formatter: function(value, row, index, field) {
return renderLink(value, `/manufacturer-part/${row.manufacturer_part.pk}/`);
if (value && row.manufacturer_part) {
return renderLink(value, `/manufacturer-part/${row.manufacturer_part.pk}/`);
} else {
return "-";
}
}
},
{