From d9131ec4ff4f2b490fa9d1b5127b23dd02095ecb Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 27 Jun 2016 12:24:55 +0530 Subject: [PATCH] [minor][fix] remove website generator call on after rename --- erpnext/setup/doctype/item_group/item_group.py | 1 - erpnext/stock/doctype/item/item.py | 1 - 2 files changed, 2 deletions(-) diff --git a/erpnext/setup/doctype/item_group/item_group.py b/erpnext/setup/doctype/item_group/item_group.py index 3feff6b595..b46205c957 100644 --- a/erpnext/setup/doctype/item_group/item_group.py +++ b/erpnext/setup/doctype/item_group/item_group.py @@ -46,7 +46,6 @@ class ItemGroup(NestedSet, WebsiteGenerator): def after_rename(self, olddn, newdn, merge=False): NestedSet.after_rename(self, olddn, newdn, merge) - WebsiteGenerator.after_rename(self, olddn, newdn, merge) def on_trash(self): NestedSet.on_trash(self) diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index d15673922e..ea702cce41 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -512,7 +512,6 @@ class Item(WebsiteGenerator): frappe.db.sql("delete from `tabBin` where item_code=%s", old_name) def after_rename(self, old_name, new_name, merge): - super(Item, self).after_rename(old_name, new_name, merge) if self.route: invalidate_cache_for_item(self) clear_cache(self.route)