mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 02:54:34 +00:00
Bug fix for StockItem.clean()
This commit is contained in:
1 parent
141f6ccbdf
commit
cffeb62bd1
1 file changed
+5
-2
@@ -453,8 +453,11 @@ class StockItem(MPTTModel):
|
|||||||
|
|
||||||
super().clean()
|
super().clean()
|
||||||
|
|
||||||
self.serial = self.serial.strip()
|
if self.serial is not None and type(self.serial) is str:
|
||||||
self.batch = self.batch.strip()
|
self.serial = self.serial.strip()
|
||||||
|
|
||||||
|
if self.batch is not None and type(self.batch) is str:
|
||||||
|
self.batch = self.batch.strip()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if self.part.trackable:
|
if self.part.trackable:
|
||||||
|
|||||||
Reference in new issue
Block a user