2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-11 17:45:39 +00:00

handle non-int serial range suggestions cleanly

This commit is contained in:
Ben Charlton
2020-08-24 20:00:19 +01:00
parent d5a374f1fd
commit 0da2682c68

@ -367,6 +367,9 @@ class Part(MPTTModel):
sn = self.getNextSerialNumber()
if sn is None:
return None
if quantity >= 2:
sn = "{n}-{m}".format(
n=sn,