Display attachment upload date

This commit is contained in:
Oliver 2021-06-30 17:44:23 +10:00
parent 9b4db43232
commit 30ac5dba55
5 changed files with 31 additions and 2 deletions

View File

@ -159,5 +159,10 @@ class BuildAttachmentSerializer(InvenTreeModelSerializer):
'pk',
'build',
'attachment',
'comment'
'comment',
'upload_date',
]
read_only_fields = [
'upload_date',
]

View File

@ -157,6 +157,11 @@ class POAttachmentSerializer(InvenTreeModelSerializer):
'order',
'attachment',
'comment',
'upload_date',
]
read_only_fields = [
'upload_date',
]
@ -359,4 +364,9 @@ class SOAttachmentSerializer(InvenTreeModelSerializer):
'order',
'attachment',
'comment',
'upload_date',
]
read_only_fields = [
'upload_date',
]

View File

@ -61,7 +61,12 @@ class PartAttachmentSerializer(InvenTreeModelSerializer):
'pk',
'part',
'attachment',
'comment'
'comment',
'upload_date',
]
read_only_fields = [
'upload_date',
]

View File

@ -270,6 +270,11 @@ class LocationSerializer(InvenTreeModelSerializer):
'parent',
'pathstring',
'items',
'upload_date',
]
read_only_fields = [
'upload_date',
]

View File

@ -51,6 +51,10 @@ function loadAttachmentTable(url, options) {
field: 'comment',
title: '{% trans "Comment" %}',
},
{
field: 'upload_date',
title: '{% trans "Upload Date" %}',
},
{
field: 'actions',
formatter: function(value, row) {