mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Account for cases where serial number could be an integer!
This commit is contained in:
@ -454,11 +454,11 @@ class StockItem(MPTTModel):
|
|||||||
super().clean()
|
super().clean()
|
||||||
|
|
||||||
# Strip serial number field
|
# Strip serial number field
|
||||||
if self.serial:
|
if type(self.serial) is str:
|
||||||
self.serial = self.serial.strip()
|
self.serial = self.serial.strip()
|
||||||
|
|
||||||
# Strip batch code field
|
# Strip batch code field
|
||||||
if self.batch:
|
if type(self.batch) is str:
|
||||||
self.batch = self.batch.strip()
|
self.batch = self.batch.strip()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user