diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 99c480a3b3..911a2cdac4 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -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")