Allow non-english characters in Naming Series
This commit is contained in:
parent
9b30a8626c
commit
e241569303
@ -117,8 +117,8 @@ class NamingSeries(Document):
|
|||||||
|
|
||||||
def validate_series_name(self, n):
|
def validate_series_name(self, n):
|
||||||
import re
|
import re
|
||||||
if not re.match("^[a-zA-Z0-9- /.#]*$", n):
|
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):
|
||||||
return frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series").options
|
return frappe.get_meta(arg or self.select_doc_for_series).get_field("naming_series").options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user