mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Include total stock in PartBrief serializer
This commit is contained in:
@ -379,7 +379,7 @@ class Part(models.Model):
|
||||
|
||||
total -= self.allocation_count
|
||||
|
||||
return total
|
||||
return max(total, 0)
|
||||
|
||||
def isStarredBy(self, user):
|
||||
""" Return True if this part has been starred by a particular user """
|
||||
|
Reference in New Issue
Block a user