Expose supplier_reference to external API

This commit is contained in:
Oliver Walters 2020-04-15 14:18:17 +10:00
parent c12a482e4d
commit 610f85597f
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class POList(generics.ListCreateAPIView):
data = queryset.values( data = queryset.values(
'pk', 'pk',
'supplier', 'supplier',
'supplier_reference',
'supplier__name', 'supplier__name',
'supplier__image', 'supplier__image',
'reference', 'reference',

View File

@ -19,6 +19,7 @@ class POSerializer(InvenTreeModelSerializer):
fields = [ fields = [
'pk', 'pk',
'supplier', 'supplier',
'supplier_reference',
'reference', 'reference',
'description', 'description',
'link', 'link',