2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 21:30:54 +00:00

Bug fix for recent SupplierPart API annotation (#3336)

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

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