mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Return True for BOM valid flag if part does not have BOM items
This commit is contained in:
parent
d39bd88440
commit
64a57128bc
@ -1372,7 +1372,7 @@ class Part(MPTTModel):
|
|||||||
""" Check if the BOM is 'valid' - if the calculated checksum matches the stored value
|
""" Check if the BOM is 'valid' - if the calculated checksum matches the stored value
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return self.get_bom_hash() == self.bom_checksum
|
return self.get_bom_hash() == self.bom_checksum or not self.has_bom
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def validate_bom(self, user):
|
def validate_bom(self, user):
|
||||||
|
Loading…
Reference in New Issue
Block a user