2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 05:26:45 +00:00
This commit is contained in:
Oliver Walters 2020-05-19 17:37:00 +10:00
parent 9cb039f685
commit b121262af1

View File

@ -1112,12 +1112,12 @@ class StockItemTestResult(models.Model):
super().clean() 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) key = helpers.generateTestKey(self.test)
templates = self.stock_item.part.getTestTemplates() templates = self.stock_item.part.getTestTemplates()
"""
TODO: Re-introduce this at a later stage, it is buggy when uplaoding an attachment via the API TODO: Re-introduce this at a later stage, it is buggy when uplaoding an attachment via the API
for template in templates: for template in templates:
if key == template.key: if key == template.key: