Bläddra i källkod

[fix] indexing in Commuication

version-14
Rushabh Mehta 9 år sedan
förälder
incheckning
00d3d9a2d6
2 ändrade filer med 985 tillägg och 983 borttagningar
  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
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 0
frappe/core/doctype/communication/communication.py Visa fil

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


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


Laddar…
Avbryt
Spara