mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-03 07:25:55 +00:00
Include the sub_part ID in the BOM hash
This commit is contained in:
1 parent
f410957d8d
commit
42bbf95c42
1 file changed
+1
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user