2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 05:26:45 +00:00

[BUG] Unable to create build output

Fix if no allocate set
Fixes #2663
This commit is contained in:
Matthias 2022-02-23 02:01:46 +01:00
parent 05b0a493ad
commit 7be832cc9b
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -236,6 +236,7 @@ class BuildOutputCreateSerializer(serializers.Serializer):
auto_allocate = serializers.BooleanField( auto_allocate = serializers.BooleanField(
required=False, required=False,
default=False, default=False,
allow_null=True,
label=_('Auto Allocate Serial Numbers'), label=_('Auto Allocate Serial Numbers'),
help_text=_('Automatically allocate required items with matching serial numbers'), help_text=_('Automatically allocate required items with matching serial numbers'),
) )