瀏覽代碼

[fix] communications in user, fixes frappe/erpnext#8459

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
15d97471fe
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      frappe/desk/form/load.py

+ 3
- 0
frappe/desk/form/load.py 查看文件

@@ -172,6 +172,9 @@ def get_communication_data(doctype, name, start=0, limit=20, after=None, fields=
# find after a particular date
conditions+= ' and creation > {0}'.format(after)

if doctype=='User':
conditions+= ' and not (reference_doctype="User" and communication_type="Communication")'

communications = frappe.db.sql("""select {fields}
from tabCommunication
where {conditions} {group_by}


Loading…
取消
儲存