mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
[minor] fixes after item price move
This commit is contained in:
@@ -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")
|
||||
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes, os
|
||||
|
||||
def execute():
|
||||
from webnotes.utils import get_base_path
|
||||
|
||||
for dt in ("item_price", "price_list"):
|
||||
path = os.path.join(get_base_path(), "app", "setup", "doctype", dt)
|
||||
if os.path.exists(path):
|
||||
os.system("rm -rf {path}".format(path=path))
|
||||
@@ -229,4 +229,5 @@ patch_list = [
|
||||
"patches.october_2013.p06_update_control_panel_and_global_defaults",
|
||||
"patches.october_2013.p07_rename_for_territory",
|
||||
"patches.june_2013.p07_taxes_price_list_for_territory",
|
||||
"patches.october_2013.p08_cleanup_after_item_price_module_change",
|
||||
]
|
||||
Reference in New Issue
Block a user