diff --git a/InvenTree/InvenTree/static/script/inventree/part.js b/InvenTree/InvenTree/static/script/inventree/part.js index 7954caa012..7dc2c6a82a 100644 --- a/InvenTree/InvenTree/static/script/inventree/part.js +++ b/InvenTree/InvenTree/static/script/inventree/part.js @@ -87,6 +87,9 @@ function loadPartTable(table, url, options={}) { * disableFilters: If true, disable custom filters */ + // Ensure category detail is included + options.params['category_detail'] = true; + var params = options.params || {}; var filters = {}; @@ -184,11 +187,11 @@ function loadPartTable(table, url, options={}) { columns.push({ sortable: true, - field: 'category__name', + field: 'category_detail', title: 'Category', formatter: function(value, row, index, field) { if (row.category) { - return renderLink(row.category__name, "/part/category/" + row.category + "/"); + return renderLink(value.pathstring, "/part/category/" + row.category + "/"); } else { return 'No category'; diff --git a/InvenTree/InvenTree/static/script/inventree/stock.js b/InvenTree/InvenTree/static/script/inventree/stock.js index d68d0946a2..3fe11ed087 100644 --- a/InvenTree/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/InvenTree/static/script/inventree/stock.js @@ -43,8 +43,12 @@ function loadStockTable(table, options) { * filterList -