Merge pull request #17787 from nabinhait/naming-series-chars
fix: Allowed '{' and '}' in naming series
This commit is contained in:
commit
b6ffaf11fe
@ -135,8 +135,8 @@ 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):
|
||||||
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):
|
||||||
if frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series"):
|
if frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series"):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user