Browse Source

[fix] indexing in Commuication

version-14
Rushabh Mehta 9 years ago
parent
commit
00d3d9a2d6
2 changed files with 985 additions and 983 deletions
  1. +984
    -983
      frappe/core/doctype/communication/communication.json
  2. +1
    -0
      frappe/core/doctype/communication/communication.py

+ 984
- 983
frappe/core/doctype/communication/communication.json
File diff suppressed because it is too large
View File


+ 1
- 0
frappe/core/doctype/communication/communication.py View File

@@ -225,6 +225,7 @@ def on_doctype_update():
"""Add index in `tabCommunication` for `(reference_doctype, reference_name)`"""
frappe.db.add_index("Communication", ["reference_doctype", "reference_name"])
frappe.db.add_index("Communication", ["timeline_doctype", "timeline_name"])
frappe.db.add_index("Communication", ["link_doctype", "link_name"])

def has_permission(doc, ptype, user):
if ptype=="read" and doc.reference_doctype and doc.reference_name:


Loading…
Cancel
Save