mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix
This commit is contained in:
parent
a7baad33ba
commit
2b30df1a70
@ -1586,7 +1586,7 @@ class StockItemCreate(AjaxCreateView):
|
|||||||
serials = extract_serial_numbers(sn, quantity)
|
serials = extract_serial_numbers(sn, quantity)
|
||||||
except ValidationError as e:
|
except ValidationError as e:
|
||||||
serials = None
|
serials = None
|
||||||
form.add_error('serial_numbers', e)
|
form.add_error('serial_numbers', e.messages)
|
||||||
|
|
||||||
if serials is not None:
|
if serials is not None:
|
||||||
existing = part.find_conflicting_serial_numbers(serials)
|
existing = part.find_conflicting_serial_numbers(serials)
|
||||||
|
Loading…
Reference in New Issue
Block a user