Merge pull request #1649 from SchrodingersGat/typo-fix

Fix typo in getStockItemThumbnail
This commit is contained in:
Oliver authored and GitHub committed 2021-06-09 11:54:50 +10:00
commit 0076c0cec5
1 file changed
+1 -1
+1 -1
View File
@@ -1298,7 +1298,7 @@ class BuildItem(models.Model):
except:
pass
if thumb_url is None and self.bom_item and self.stock_item.sub_part:
if thumb_url is None and self.bom_item and self.bom_item.sub_part:
try:
thumb_url = self.bom_item.sub_part.image.thumbnail.url
except: