This commit is contained in:
Oliver Walters 2021-02-17 23:57:45 +11:00
parent ef902fc313
commit 3f30421ba9

View File

@ -1451,7 +1451,7 @@ class Part(MPTTModel):
min_price = None min_price = None
max_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: if item.sub_part.pk == self.pk:
print("Warning: Item contains itself in BOM") print("Warning: Item contains itself in BOM")