mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
Improved speed of stock tree
This commit is contained in:
@ -66,9 +66,8 @@ class PartCategory(InvenTreeTree):
|
||||
|
||||
@property
|
||||
def item_count(self):
|
||||
return self.partcount
|
||||
return self.partcount()
|
||||
|
||||
@property
|
||||
def partcount(self, cascade=True, active=True):
|
||||
""" Return the total part count under this category
|
||||
(including children of child categories)
|
||||
|
Reference in New Issue
Block a user