mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fix
This commit is contained in:
parent
6f5b560fb6
commit
4313503649
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user