Bug fix for recent SupplierPart API annotation (#3336)

This commit is contained in:
Oliver authored and GitHub committed 2022-07-15 20:30:26 +10:00
1 parent 653dcd4526
commit 6e2a2f2b2c
3 files changed
+23 -2

No files matched your search

+1 -1
View File
@@ -284,7 +284,7 @@ class SupplierPartSerializer(InvenTreeModelSerializer):
"""
queryset = queryset.annotate(
in_stock=part.filters.annotate_total_stock(reference='part__')
in_stock=part.filters.annotate_total_stock()
)
return queryset