2015-02-24 12:24:53 +05:30
|
|
|
from __future__ import unicode_literals
|
2014-02-25 11:08:18 +05:30
|
|
|
import frappe
|
|
|
|
import frappe.model
|
|
|
|
|
|
|
|
def execute():
|
2014-02-25 17:25:28 +05:30
|
|
|
frappe.reload_doc("setup", "doctype", "item_group")
|
2014-02-25 11:08:18 +05:30
|
|
|
frappe.reload_doc("stock", "doctype", "item")
|
|
|
|
frappe.reload_doc("setup", "doctype", "sales_partner")
|
2014-02-27 13:18:20 +05:30
|
|
|
|
|
|
|
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")
|
2017-07-27 07:08:35 +02:00
|
|
|
except Exception as e:
|
2014-02-27 13:18:20 +05:30
|
|
|
if e.args[0]!=1054:
|
2017-07-27 07:08:35 +02:00
|
|
|
raise
|