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(
'pk',
'supplier',
'supplier_reference',
'supplier__name',
'supplier__image',
'reference',

View File

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