mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 18:15:40 +00:00
handle non-int serial range suggestions cleanly
This commit is contained in:
@ -367,6 +367,9 @@ class Part(MPTTModel):
|
|||||||
|
|
||||||
sn = self.getNextSerialNumber()
|
sn = self.getNextSerialNumber()
|
||||||
|
|
||||||
|
if sn is None:
|
||||||
|
return None
|
||||||
|
|
||||||
if quantity >= 2:
|
if quantity >= 2:
|
||||||
sn = "{n}-{m}".format(
|
sn = "{n}-{m}".format(
|
||||||
n=sn,
|
n=sn,
|
||||||
|
Reference in New Issue
Block a user