mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-10 17:20:32 +00:00
PEP fix
This commit is contained in:
@ -2716,7 +2716,7 @@ class BomItem(models.Model, DataImportMixin):
|
||||
# Variant stock is not allowed for this BOM item
|
||||
if not self.allow_variants:
|
||||
return 0
|
||||
|
||||
|
||||
# Extract a flattened list of part variants
|
||||
variants = self.sub_part.get_descendants(include_self=False)
|
||||
|
||||
|
Reference in New Issue
Block a user