Removed test that caused a bug

This commit is contained in:
Oliver Walters committed 2020-05-17 22:29:07 +10:00
1 parent 6cb017bbfd
commit 02b0c0831d
1 file changed
-4
-4
View File
@@ -276,10 +276,6 @@ class StockItem(MPTTModel):
# Serial numbered items cannot be deleted on depletion
self.delete_on_deplete = False
# A template part cannot be instantiated as a StockItem
if self.part.is_template:
raise ValidationError({'part': _('Stock item cannot be created for a template Part')})
except PartModels.Part.DoesNotExist:
# This gets thrown if self.supplier_part is null
# TODO - Find a test than can be perfomed...