mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Account for cases where serial number could be an integer!
This commit is contained in:
parent
aa4df62ac9
commit
292d28d378
@ -454,11 +454,11 @@ class StockItem(MPTTModel):
|
||||
super().clean()
|
||||
|
||||
# Strip serial number field
|
||||
if self.serial:
|
||||
if type(self.serial) is str:
|
||||
self.serial = self.serial.strip()
|
||||
|
||||
# Strip batch code field
|
||||
if self.batch:
|
||||
if type(self.batch) is str:
|
||||
self.batch = self.batch.strip()
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user