mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix
This commit is contained in:
parent
b89002a450
commit
0199760e1c
@ -526,7 +526,7 @@ class Part(models.Model):
|
||||
This number (unlike 'available_stock') can be negative.
|
||||
"""
|
||||
|
||||
return self.total_stock - self.allocation_count + self.on_order
|
||||
return self.total_stock - self.allocation_count() + self.on_order
|
||||
|
||||
def isStarredBy(self, user):
|
||||
""" Return True if this part has been starred by a particular user """
|
||||
|
Loading…
Reference in New Issue
Block a user