mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-06 05:30:56 +00:00
Increase unit testing for StockItem API
This commit is contained in:
@ -453,6 +453,9 @@ class StockItem(MPTTModel):
|
||||
|
||||
super().clean()
|
||||
|
||||
self.serial = self.serial.strip()
|
||||
self.batch = self.batch.strip()
|
||||
|
||||
try:
|
||||
if self.part.trackable:
|
||||
# Trackable parts must have integer values for quantity field!
|
||||
|
Reference in New Issue
Block a user