From a745aa500e79789af3a19fba12116dec700b64b9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 29 Dec 2021 03:02:43 +0100 Subject: [PATCH] replace must be str --- InvenTree/InvenTree/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/helpers.py b/InvenTree/InvenTree/helpers.py index e030d51abf..4848b49e33 100644 --- a/InvenTree/InvenTree/helpers.py +++ b/InvenTree/InvenTree/helpers.py @@ -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)