From 50a79770e5993eae315e27d28c6087eca8c0d8ca Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 20 Oct 2021 23:37:26 +1100 Subject: [PATCH] Un-comment lines in build.serializers --- InvenTree/build/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/build/serializers.py b/InvenTree/build/serializers.py index f23e2a1db0..a18f58fb76 100644 --- a/InvenTree/build/serializers.py +++ b/InvenTree/build/serializers.py @@ -310,13 +310,12 @@ class BuildAllocationItemSerializer(serializers.Serializer): def validate_bom_item(self, bom_item): # TODO: Fix this validation - allow for variants and substitutes! - """ + build = self.context['build'] # BomItem must point to the same 'part' as the parent build if build.part != bom_item.part: raise ValidationError(_("bom_item.part must point to the same part as the build order")) - """ return bom_item