From 42bbf95c42031523c7a20498bd71d7d7800bef4f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 May 2019 18:09:59 +1000 Subject: [PATCH] Include the sub_part ID in the BOM hash --- InvenTree/part/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index b781287930..d119c3094e 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -493,6 +493,7 @@ class Part(models.Model): hash = hashlib.md5('bom seed'.encode()) for item in self.bom_items.all(): + hash.update(str(item.sub_part.id).encode()) hash.update(str(item.sub_part.full_name).encode()) hash.update(str(item.quantity).encode()) hash.update(str(item.note).encode())