From ef3ac43c4acca3081e12f45fc9d3a6fcf2d54950 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 15 Jan 2021 15:27:40 +1100 Subject: [PATCH] Add "last updated" date to stock table --- InvenTree/stock/serializers.py | 1 + InvenTree/templates/js/stock.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 6048d5e248..b8e71ff58c 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -213,6 +213,7 @@ class StockItemSerializer(InvenTreeModelSerializer): 'supplier_part_detail', 'tracking_items', 'uid', + 'updated', ] """ These fields are read-only in this context. diff --git a/InvenTree/templates/js/stock.js b/InvenTree/templates/js/stock.js index 836fa0e242..276be131f0 100644 --- a/InvenTree/templates/js/stock.js +++ b/InvenTree/templates/js/stock.js @@ -613,6 +613,11 @@ function loadStockTable(table, options) { sortable: true, }, {% endif %} + { + field: 'updated', + title: '{% trans "Last Updated" %}', + sortable: true, + }, { field: 'notes', title: '{% trans "Notes" %}',