mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display supplier part URL in table
This commit is contained in:
parent
1d36ea3e2e
commit
d5dbc1b072
@ -74,7 +74,18 @@
|
||||
sortable: true,
|
||||
field: 'MPN',
|
||||
title: 'MPN',
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'URL',
|
||||
title: 'URL',
|
||||
formatter: function(value, row, index, field) {
|
||||
if (value) {
|
||||
return renderLink(value, value);
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
url: "{% url 'api-part-supplier-list' %}"
|
||||
});
|
||||
|
@ -145,6 +145,7 @@ class SupplierPartSerializer(serializers.ModelSerializer):
|
||||
'SKU',
|
||||
'manufacturer',
|
||||
'MPN',
|
||||
'URL',
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user