mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix for StockItem.clean()
This commit is contained in:
parent
141f6ccbdf
commit
cffeb62bd1
@ -453,8 +453,11 @@ class StockItem(MPTTModel):
|
||||
|
||||
super().clean()
|
||||
|
||||
self.serial = self.serial.strip()
|
||||
self.batch = self.batch.strip()
|
||||
if self.serial is not None and type(self.serial) is str:
|
||||
self.serial = self.serial.strip()
|
||||
|
||||
if self.batch is not None and type(self.batch) is str:
|
||||
self.batch = self.batch.strip()
|
||||
|
||||
try:
|
||||
if self.part.trackable:
|
||||
|
Loading…
Reference in New Issue
Block a user