Add "last updated" date to stock table

This commit is contained in:
Oliver Walters 2021-01-15 15:27:40 +11:00
parent 8f4ae14f2d
commit ef3ac43c4a
2 changed files with 6 additions and 0 deletions

View File

@ -213,6 +213,7 @@ class StockItemSerializer(InvenTreeModelSerializer):
'supplier_part_detail', 'supplier_part_detail',
'tracking_items', 'tracking_items',
'uid', 'uid',
'updated',
] ]
""" These fields are read-only in this context. """ These fields are read-only in this context.

View File

@ -613,6 +613,11 @@ function loadStockTable(table, options) {
sortable: true, sortable: true,
}, },
{% endif %} {% endif %}
{
field: 'updated',
title: '{% trans "Last Updated" %}',
sortable: true,
},
{ {
field: 'notes', field: 'notes',
title: '{% trans "Notes" %}', title: '{% trans "Notes" %}',