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:
@ -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',
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user