mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
fix: allow braces for custom field names
This commit is contained in:
@@ -135,7 +135,7 @@ class NamingSeries(Document):
|
|||||||
|
|
||||||
def validate_series_name(self, n):
|
def validate_series_name(self, n):
|
||||||
import re
|
import re
|
||||||
if not re.match("^[\w\- /.#]*$", n, re.UNICODE):
|
if not (re.match("^[\w\- /.#]*$", n, re.UNICODE) or re.match("\{(.*?)\}", n, re.UNICODE)):
|
||||||
throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series'))
|
throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series'))
|
||||||
|
|
||||||
def get_options(self, arg=None):
|
def get_options(self, arg=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user