mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
[fix] [minor] replace single quote in territory name while creating territories in setup control
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user