mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Removed test that caused a bug
This commit is contained in:
parent
6cb017bbfd
commit
02b0c0831d
@ -276,10 +276,6 @@ class StockItem(MPTTModel):
|
|||||||
# Serial numbered items cannot be deleted on depletion
|
# Serial numbered items cannot be deleted on depletion
|
||||||
self.delete_on_deplete = False
|
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:
|
except PartModels.Part.DoesNotExist:
|
||||||
# This gets thrown if self.supplier_part is null
|
# This gets thrown if self.supplier_part is null
|
||||||
# TODO - Find a test than can be perfomed...
|
# TODO - Find a test than can be perfomed...
|
||||||
|
Loading…
Reference in New Issue
Block a user