mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 01:20:41 +00:00
(cherry picked from commit 043e3255d6)
Co-authored-by: Rohan <Alchez@users.noreply.github.com>
This commit is contained in:
@@ -41,7 +41,6 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
||||
def on_update(self):
|
||||
NestedSet.on_update(self)
|
||||
invalidate_cache_for(self)
|
||||
self.validate_name_with_item()
|
||||
self.validate_one_root()
|
||||
self.delete_child_item_groups_key()
|
||||
|
||||
@@ -65,10 +64,6 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
||||
WebsiteGenerator.on_trash(self)
|
||||
self.delete_child_item_groups_key()
|
||||
|
||||
def validate_name_with_item(self):
|
||||
if frappe.db.exists("Item", self.name):
|
||||
frappe.throw(frappe._("An item exists with same name ({0}), please change the item group name or rename the item").format(self.name), frappe.NameError)
|
||||
|
||||
def get_context(self, context):
|
||||
context.show_search = True
|
||||
context.body_class = "product-page"
|
||||
|
||||
Reference in New Issue
Block a user