Improved speed of stock tree

This commit is contained in:
Oliver Walters committed 2019-06-18 00:09:42 +10:00
1 parent a796b984ff
commit 642660d76e
3 files changed
+20 -12

No files matched your search

+1 -2
View File
@@ -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)