[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):
|
||||
webnotes.bean({
|
||||
"doctype": "Territory",
|
||||
"territory_name": name,
|
||||
"territory_name": name.replace("'", ""),
|
||||
"parent_territory": root_territory,
|
||||
"is_group": "No"
|
||||
}).insert()
|
||||
|
Loading…
x
Reference in New Issue
Block a user