This commit is contained in:
Oliver Walters 2022-04-15 22:47:32 +10:00
parent 6f5b560fb6
commit 4313503649

View File

@ -2716,7 +2716,7 @@ class BomItem(models.Model, DataImportMixin):
# Variant stock is not allowed for this BOM item # Variant stock is not allowed for this BOM item
if not self.allow_variants: if not self.allow_variants:
return 0 return 0
# Extract a flattened list of part variants # Extract a flattened list of part variants
variants = self.sub_part.get_descendants(include_self=False) variants = self.sub_part.get_descendants(include_self=False)