Преглед на файлове

[fix] indexing in Commuication

version-14
Rushabh Mehta преди 9 години
родител
ревизия
00d3d9a2d6
променени са 2 файла, в които са добавени 985 реда и са изтрити 983 реда
  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
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 1
- 0
frappe/core/doctype/communication/communication.py Целия файл

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


Зареждане…
Отказ
Запис