Merge pull request #5548 from saurabh6790/after_rename_for_item_and_item_grp
[minor][fix] remove website generator call on after rename
This commit is contained in:
commit
20bedc004e
@ -46,7 +46,6 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
|
|
||||||
def after_rename(self, olddn, newdn, merge=False):
|
def after_rename(self, olddn, newdn, merge=False):
|
||||||
NestedSet.after_rename(self, olddn, newdn, merge)
|
NestedSet.after_rename(self, olddn, newdn, merge)
|
||||||
WebsiteGenerator.after_rename(self, olddn, newdn, merge)
|
|
||||||
|
|
||||||
def on_trash(self):
|
def on_trash(self):
|
||||||
NestedSet.on_trash(self)
|
NestedSet.on_trash(self)
|
||||||
|
@ -512,7 +512,6 @@ class Item(WebsiteGenerator):
|
|||||||
frappe.db.sql("delete from `tabBin` where item_code=%s", old_name)
|
frappe.db.sql("delete from `tabBin` where item_code=%s", old_name)
|
||||||
|
|
||||||
def after_rename(self, old_name, new_name, merge):
|
def after_rename(self, old_name, new_name, merge):
|
||||||
super(Item, self).after_rename(old_name, new_name, merge)
|
|
||||||
if self.route:
|
if self.route:
|
||||||
invalidate_cache_for_item(self)
|
invalidate_cache_for_item(self)
|
||||||
clear_cache(self.route)
|
clear_cache(self.route)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user