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