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:
@@ -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
|
||||
|
Reference in New Issue
Block a user