This commit is contained in:
Oliver Walters 2021-01-18 14:39:17 +11:00
parent a7baad33ba
commit 2b30df1a70

View File

@ -1586,7 +1586,7 @@ class StockItemCreate(AjaxCreateView):
serials = extract_serial_numbers(sn, quantity)
except ValidationError as e:
serials = None
form.add_error('serial_numbers', e)
form.add_error('serial_numbers', e.messages)
if serials is not None:
existing = part.find_conflicting_serial_numbers(serials)