mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Un-comment lines in build.serializers
This commit is contained in:
parent
f83dc134ef
commit
50a79770e5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user