diff --git a/erpnext/setup/doctype/naming_series/naming_series.py b/erpnext/setup/doctype/naming_series/naming_series.py index 5a12051056..cfe22222c8 100644 --- a/erpnext/setup/doctype/naming_series/naming_series.py +++ b/erpnext/setup/doctype/naming_series/naming_series.py @@ -117,7 +117,7 @@ class NamingSeries(Document): def validate_series_name(self, n): import re - if not re.match("^[\w- /.#]*$", n, re.UNICODE): + if not re.match("^[\w\- /.#]*$", n, re.UNICODE): throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series')) def get_options(self, arg=None):