From 6660508326c3dc5a69b3aa13e0ccd02712b60dd7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 26 Jul 2023 16:47:59 +1000 Subject: [PATCH] Allow duplicate BOM items when duplicating a part (#5347) --- InvenTree/part/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 8b1edb7870..8a17ecefa5 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -2035,10 +2035,6 @@ class Part(InvenTreeBarcodeMixin, InvenTreeNotesMixin, MetadataMixin, MPTTModel) if bom_item.part in my_ancestors and bom_item.inherited: continue - # Skip if already exists - if BomItem.objects.filter(part=self, sub_part=bom_item.sub_part).exists(): - continue - # Skip (or throw error) if BomItem is not valid if not bom_item.sub_part.check_add_to_bom(self, raise_error=raise_error): continue