2015-02-24 06:54:53 +00:00
|
|
|
from __future__ import unicode_literals
|
2014-02-25 05:38:18 +00:00
|
|
|
import frappe
|
|
|
|
import frappe.model
|
|
|
|
|
|
|
|
def execute():
|
2014-02-25 11:55:28 +00:00
|
|
|
frappe.reload_doc("setup", "doctype", "item_group")
|
2014-02-25 05:38:18 +00:00
|
|
|
frappe.reload_doc("stock", "doctype", "item")
|
|
|
|
frappe.reload_doc("setup", "doctype", "sales_partner")
|
2014-02-27 07:48:20 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
frappe.model.rename_field("Item Group", "parent_website_sitemap", "parent_website_route")
|
|
|
|
frappe.model.rename_field("Item", "parent_website_sitemap", "parent_website_route")
|
|
|
|
frappe.model.rename_field("Sales Partner", "parent_website_sitemap",
|
|
|
|
"parent_website_route")
|
|
|
|
except Exception, e:
|
|
|
|
if e.args[0]!=1054:
|
|
|
|
raise
|