mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-08 16:20:27 +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):
|
def validate_bom_item(self, bom_item):
|
||||||
|
|
||||||
# TODO: Fix this validation - allow for variants and substitutes!
|
# TODO: Fix this validation - allow for variants and substitutes!
|
||||||
"""
|
|
||||||
build = self.context['build']
|
build = self.context['build']
|
||||||
|
|
||||||
# BomItem must point to the same 'part' as the parent build
|
# BomItem must point to the same 'part' as the parent build
|
||||||
if build.part != bom_item.part:
|
if build.part != bom_item.part:
|
||||||
raise ValidationError(_("bom_item.part must point to the same part as the build order"))
|
raise ValidationError(_("bom_item.part must point to the same part as the build order"))
|
||||||
"""
|
|
||||||
|
|
||||||
return bom_item
|
return bom_item
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user