mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-11 17:45:39 +00:00
replace must be str
This commit is contained in:
@ -424,7 +424,7 @@ def extract_serial_numbers(serials, expected_quantity, next_number: int):
|
||||
|
||||
# fill in the next serial number into the serial
|
||||
if '~' in serials:
|
||||
serials = serials.replace('~', next_number)
|
||||
serials = serials.replace('~', str(next_number))
|
||||
|
||||
groups = re.split("[\s,]+", serials)
|
||||
|
||||
|
Reference in New Issue
Block a user