mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Increased unit testing
This commit is contained in:
@ -277,6 +277,15 @@ class BuildCompleteSerializer(serializers.Serializer):
|
||||
|
||||
return value
|
||||
|
||||
def validate(self, data):
|
||||
|
||||
build = self.context['build']
|
||||
|
||||
if build.incomplete_count > 0:
|
||||
raise ValidationError(_("Build order has incomplete outputs"))
|
||||
|
||||
return data
|
||||
|
||||
def save(self):
|
||||
|
||||
request = self.context['request']
|
||||
|
Reference in New Issue
Block a user