2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Add a "completed" field to the Build model

- Keeps track of how many outputs have been produced
- Will not be directly editable by the user
This commit is contained in:
Oliver Walters
2020-10-20 23:59:37 +11:00
parent fd6d630037
commit e02536071d
7 changed files with 183 additions and 124 deletions

View File

@ -38,6 +38,7 @@ class BuildSerializer(InvenTreeModelSerializer):
'url',
'title',
'creation_date',
'completed',
'completion_date',
'part',
'part_detail',
@ -51,9 +52,10 @@ class BuildSerializer(InvenTreeModelSerializer):
]
read_only_fields = [
'status',
'completed',
'creation_date',
'completion_data',
'status',
'status_text',
]