From 46da332afe151d3bfec1f23fe6643bbaa34a0947 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 26 Jul 2023 16:54:20 +1000 Subject: [PATCH] Allow duplicate BOM items when duplicating a part (#5347) (#5350) (cherry picked from commit 6660508326c3dc5a69b3aa13e0ccd02712b60dd7) Co-authored-by: Oliver --- InvenTree/part/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index fc1cc2e4513..7008e76b178 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -2031,10 +2031,6 @@ def copy_bom_from(self, other, clear=True, **kwargs): 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