Website Listing

This commit is contained in:
Anand Doshi
2015-02-23 22:14:12 +05:30
parent a1da88a3d3
commit f9fc04ce8e
37 changed files with 256 additions and 487 deletions

View File

@@ -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)