2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Support non-integer serial numbers

This commit is contained in:
Ben Charlton
2020-08-21 17:36:49 +01:00
parent eeca3effee
commit f7ed48809c
5 changed files with 28 additions and 15 deletions

View File

@ -346,8 +346,10 @@ class Part(MPTTModel):
if n is None:
return 1
else:
elif n is int:
return n + 1
else:
return None
def getSerialNumberString(self, quantity):
"""