From e69f6c5b9dbd435c0eab9a20aae5c57609605b39 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 11 Apr 2020 21:08:27 +1000 Subject: [PATCH] table fixes --- InvenTree/InvenTree/static/script/inventree/build.js | 5 +++++ InvenTree/company/templates/company/detail_part.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/static/script/inventree/build.js b/InvenTree/InvenTree/static/script/inventree/build.js index c559f773d8..e61fa397a6 100644 --- a/InvenTree/InvenTree/static/script/inventree/build.js +++ b/InvenTree/InvenTree/static/script/inventree/build.js @@ -62,6 +62,11 @@ function loadBuildTable(table, options) { title: 'Created', sortable: true, }, + { + field: 'completion_date', + title: 'Completed', + sortable: true, + }, ], }); } diff --git a/InvenTree/company/templates/company/detail_part.html b/InvenTree/company/templates/company/detail_part.html index 83c565943c..d5be2cb94d 100644 --- a/InvenTree/company/templates/company/detail_part.html +++ b/InvenTree/company/templates/company/detail_part.html @@ -64,7 +64,7 @@ field: 'part_detail.full_name', title: '{% trans "Part" %}', formatter: function(value, row, index, field) { - return imageHoverIcon(row.part_detail.image_url) + renderLink(value, '/part/' + row.part + '/suppliers/'); + return imageHoverIcon(row.part_detail.thumbnail) + renderLink(value, '/part/' + row.part + '/suppliers/'); } }, {