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

Add 'consumable' field to Part

- Indicates that a part can be used to make other parts
- This is the inverse of 'buildable'
- Add this field to the serializer and edit forms
- Display parameter on part info page
- BOM edit window only requests sub-parts that are marked as 'consumable'
- Also added option to edit 'units' field for part
This commit is contained in:
Oliver Walters
2019-04-16 00:01:15 +10:00
parent ca96c8e22b
commit 6e2b111b9c
8 changed files with 38 additions and 5 deletions

View File

@ -61,6 +61,7 @@ class PartSerializer(serializers.ModelSerializer):
'units',
'trackable',
'buildable',
'consumable',
'trackable',
'salable',
]