mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-05 23:08:48 +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
|
||||
if not self.allow_variants:
|
||||
return 0
|
||||
|
||||
|
||||
# Extract a flattened list of part variants
|
||||
variants = self.sub_part.get_descendants(include_self=False)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user