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 committed 2020-10-05 00:42:09 +11:00
1 parent c1595396c4
commit 3ee7be1d58
6 files changed
+41 -4

No files matched your search

+1
View File
@@ -403,6 +403,7 @@ class BomItemSerializer(InvenTreeModelSerializer):
'quantity',
'reference',
'price_range',
'optional',
'overage',
'note',
'validated',