[minor] fixes after item price move

This commit is contained in:
Anand Doshi
2013-11-04 15:14:57 +05:30
parent 2ced381976
commit 3673a25176
5 changed files with 28 additions and 9 deletions

View File

@@ -14,8 +14,9 @@ def execute():
webnotes.reload_doc("setup", "doctype", "applicable_territory")
if os.path.exists("app/setup/doctype/for_territory"):
os.system("rm -rf app/setup/doctype/for_territory")
path = os.path.join(get_base_path(), "app", "setup", "doctype", "for_territory")
if os.path.exists(path):
os.system("rm -rf {path}".format(path=path))
if webnotes.conn.exists("DocType", "For Territory"):
webnotes.delete_doc("DocType", "For Territory")