2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-15 09:21:26 +00:00

Update index page

This commit is contained in:
Oliver
2021-11-04 00:38:34 +11:00
parent 476a1342c1
commit ee7c3ae066
3 changed files with 6 additions and 4 deletions

View File

@ -255,6 +255,9 @@ class PartSerializer(InvenTreeModelSerializer):
to reduce database trips.
"""
# TODO: Update the "in_stock" annotation to include stock for variants of the part
# Ref: https://github.com/inventree/InvenTree/issues/2240
# Annotate with the total 'in stock' quantity
queryset = queryset.annotate(
in_stock=Coalesce(