This commit is contained in:
Oliver Walters 2020-05-19 16:59:21 +10:00
parent bf296057b3
commit 1cfe445897

View File

@ -1112,7 +1112,7 @@ class StockItemTestResult(models.Model):
super().clean()
# If this test result corresponds to a template, check the requirements of the template
# If this test result corresponds to a template, check the requirements of the template
key = helpers.generateTestKey(self.test)
templates = self.stock_item.part.getTestTemplates()
@ -1134,7 +1134,7 @@ class StockItemTestResult(models.Model):
"attachment": _("Attachment must be uploaded for this test"),
})
"""
break
# If an attachment is linked to this result, the attachment must also point to the item