浏览代码

Minor patch fix

version-14
Nabin Hait 7 年前
父节点
当前提交
ec33e82ec6
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      frappe/patches/v9_1/move_feed_to_activity_log.py

+ 7
- 0
frappe/patches/v9_1/move_feed_to_activity_log.py 查看文件

@@ -14,6 +14,13 @@ def execute():
activity_data = {'doctype': 'Activity Log'}
for field in activity_log_fields:
if communication_doc.get(field.fieldname):
if field.fieldname == "reference_name":
if not frappe.db.exists(communication_doc.get("reference_doctype"), communication_doc.get("reference_name")):
continue
if field.fieldname == "timeline_name":
if not frappe.db.exists(communication_doc.get("timeline_doctype"), communication_doc.get("timeline_name")):
continue

activity_data[field.fieldname] = communication_doc.get_value(field.fieldname)

activity_doc = frappe.get_doc(activity_data)


正在加载...
取消
保存