mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-14 23:51:08 +00:00
Stock location part list now uses bootstrap table
- Serializers within serializers!
This commit is contained in:
@@ -40,10 +40,15 @@
|
||||
{% if category == None %}
|
||||
{
|
||||
sortable: true,
|
||||
field: 'category_name',
|
||||
field: 'category',
|
||||
title: 'Category',
|
||||
formatter: function(value, row, index, field) {
|
||||
return renderLink(value, row.category_url)
|
||||
if (row.category) {
|
||||
return renderLink(row.category.name, row.category.url);
|
||||
}
|
||||
else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
},
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user