2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00
This commit is contained in:
Oliver
2021-10-20 23:20:43 +11:00
parent 8805b0a553
commit f83dc134ef
3 changed files with 4 additions and 4 deletions

View File

@ -309,10 +309,10 @@ class BuildAllocationItemSerializer(serializers.Serializer):
def validate_bom_item(self, bom_item):
build = self.context['build']
# 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"))