mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Merge pull request #2286 from SchrodingersGat/whoops-bug-fix
Fixes bug extracting list of bom items
This commit is contained in:
commit
088e72c0b5
@ -1403,7 +1403,7 @@ class Part(MPTTModel):
|
|||||||
|
|
||||||
parts = set()
|
parts = set()
|
||||||
|
|
||||||
for bom_item in self.get_bom_items.all(include_inherited=include_inherited):
|
for bom_item in self.get_bom_items(include_inherited=include_inherited):
|
||||||
|
|
||||||
if include_variants and bom_item.allow_variants:
|
if include_variants and bom_item.allow_variants:
|
||||||
for part in bom_item.sub_part.get_descendants(include_self=True):
|
for part in bom_item.sub_part.get_descendants(include_self=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user