mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Include the sub_part ID in the BOM hash
This commit is contained in:
parent
f410957d8d
commit
42bbf95c42
@ -493,6 +493,7 @@ class Part(models.Model):
|
|||||||
hash = hashlib.md5('bom seed'.encode())
|
hash = hashlib.md5('bom seed'.encode())
|
||||||
|
|
||||||
for item in self.bom_items.all():
|
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.sub_part.full_name).encode())
|
||||||
hash.update(str(item.quantity).encode())
|
hash.update(str(item.quantity).encode())
|
||||||
hash.update(str(item.note).encode())
|
hash.update(str(item.note).encode())
|
||||||
|
Loading…
Reference in New Issue
Block a user