mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
bug fix
This commit is contained in:
parent
ef902fc313
commit
3f30421ba9
@ -1451,7 +1451,7 @@ class Part(MPTTModel):
|
||||
min_price = None
|
||||
max_price = None
|
||||
|
||||
for item in self.get_bom_items.all().select_related('sub_part'):
|
||||
for item in self.get_bom_items().all().select_related('sub_part'):
|
||||
|
||||
if item.sub_part.pk == self.pk:
|
||||
print("Warning: Item contains itself in BOM")
|
||||
|
Loading…
Reference in New Issue
Block a user