mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 22:06:28 +00:00
Add build output selection to builditem creation form
This commit is contained in:
@ -934,8 +934,10 @@ class Part(MPTTModel):
|
||||
def required_parts(self):
|
||||
""" Return a list of parts required to make this part (list of BOM items) """
|
||||
parts = []
|
||||
|
||||
for bom in self.bom_items.all().select_related('sub_part'):
|
||||
parts.append(bom.sub_part)
|
||||
|
||||
return parts
|
||||
|
||||
def get_allowed_bom_items(self):
|
||||
|
Reference in New Issue
Block a user