mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 17:11:33 +02:00
fix in item group on_trash
This commit is contained in:
@@ -66,7 +66,7 @@ class DocType:
|
||||
item = sql("select name from `tabItem` where ifnull(item_group, '') = %s", self.doc.name)
|
||||
item = [d[0] for d in item]
|
||||
|
||||
if ig:
|
||||
if item:
|
||||
msgprint("""Item Group: %s can not be trashed/deleted because it is used in item: %s.
|
||||
To trash/delete this, remove/change item group in item master""" % (self.doc.name, item or ''), raise_exception=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user