2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Add "optional" field to BomItem

- Defaults to False
- Indicates that the BomItem is "optional" for a build
- Will be used in the future when calculating if a Build output is fully allocated!
This commit is contained in:
Oliver Walters
2020-10-05 00:42:09 +11:00
parent c1595396c4
commit 3ee7be1d58
6 changed files with 41 additions and 4 deletions

View File

@@ -231,7 +231,8 @@ class EditBomItemForm(HelperForm):
'quantity',
'reference',
'overage',
'note'
'note',
'optional',
]
# Prevent editing of the part associated with this BomItem