mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Website Listing
This commit is contained in:
@@ -47,7 +47,7 @@ class TransactionBase(StatusUpdater):
|
||||
"ref_type": self.doctype,
|
||||
"ref_name": self.name
|
||||
})
|
||||
|
||||
|
||||
event.insert(ignore_permissions=True)
|
||||
|
||||
if frappe.db.exists("User", self.contact_by):
|
||||
@@ -87,6 +87,7 @@ class TransactionBase(StatusUpdater):
|
||||
if prevdoc_values[field] is not None:
|
||||
self.validate_value(field, condition, prevdoc_values[field], doc)
|
||||
|
||||
|
||||
def delete_events(ref_type, ref_name):
|
||||
frappe.delete_doc("Event", frappe.db.sql_list("""select name from `tabEvent`
|
||||
where ref_type=%s and ref_name=%s""", (ref_type, ref_name)), for_reload=True)
|
||||
|
||||
Reference in New Issue
Block a user