mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Always display category
- Display full category path
This commit is contained in:
parent
9d98c429d6
commit
00c21d521e
@ -149,21 +149,19 @@
|
||||
field: 'description',
|
||||
title: 'Description',
|
||||
},
|
||||
{% if category == None %}
|
||||
{
|
||||
sortable: true,
|
||||
field: 'category',
|
||||
title: 'Category',
|
||||
formatter: function(value, row, index, field) {
|
||||
if (row.category) {
|
||||
return renderLink(row.category.name, row.category.url);
|
||||
return renderLink(row.category.pathstring, row.category.url);
|
||||
}
|
||||
else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
},
|
||||
{% endif %}
|
||||
{
|
||||
field: 'total_stock',
|
||||
title: 'Stock',
|
||||
|
Loading…
Reference in New Issue
Block a user