2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-15 01:11:27 +00:00

Rebuild tree structure before running unit tests!

This commit is contained in:
Oliver Walters
2022-04-02 13:26:39 +11:00
parent fb0b87db3d
commit 271cb3f8b1
2 changed files with 7 additions and 4 deletions

View File

@ -1434,7 +1434,7 @@ class Part(MPTTModel):
- If this part is a "template" (variants exist) then these are counted too
"""
return self.get_stock_count()
return self.get_stock_count(include_variants=True)
def get_bom_item_filter(self, include_inherited=True):
"""