Quellcode durchsuchen

[fix] indexing in Commuication

version-14
Rushabh Mehta vor 9 Jahren
Ursprung
Commit
00d3d9a2d6
2 geänderte Dateien mit 985 neuen und 983 gelöschten Zeilen
  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
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 1
- 0
frappe/core/doctype/communication/communication.py Datei anzeigen

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


Laden…
Abbrechen
Speichern