2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Delete a build output entirely

TODO: Needs to describe in the confirmation dialog what is going to happen!
This commit is contained in:
Oliver Walters
2020-10-24 00:14:27 +11:00
parent a71a51b848
commit ea7b1b65d6
7 changed files with 130 additions and 12 deletions

View File

@ -954,7 +954,8 @@ class Part(MPTTModel):
return parts
def get_allowed_bom_items(self):
""" Return a list of parts which can be added to a BOM for this part.
"""
Return a list of parts which can be added to a BOM for this part.
- Exclude parts which are not 'component' parts
- Exclude parts which this part is in the BOM for