[fix] [minor] replace single quote in territory name while creating territories in setup control
This commit is contained in:
parent
52b049145b
commit
23de6df72e
@ -256,7 +256,7 @@ def create_territories():
|
|||||||
if name and not webnotes.conn.exists("Territory", name):
|
if name and not webnotes.conn.exists("Territory", name):
|
||||||
webnotes.bean({
|
webnotes.bean({
|
||||||
"doctype": "Territory",
|
"doctype": "Territory",
|
||||||
"territory_name": name,
|
"territory_name": name.replace("'", ""),
|
||||||
"parent_territory": root_territory,
|
"parent_territory": root_territory,
|
||||||
"is_group": "No"
|
"is_group": "No"
|
||||||
}).insert()
|
}).insert()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user