瀏覽代碼

[fix] test

version-14
Rushabh Mehta 9 年之前
父節點
當前提交
bead28e7ba
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. +8
    -6
      frappe/core/doctype/communication/email.py

+ 8
- 6
frappe/core/doctype/communication/email.py 查看文件

@@ -147,14 +147,16 @@ def update_parent_status(doc):
return

status_field = parent.meta.get_field("status")
options = (status_field.options or '').splitlines()

# if status has a "Replied" option, then update the status
if status_field and 'Replied' in options:
to_status = "Open" if doc.sent_or_received=="Received" else "Replied"
if status_field:
options = (status_field.options or '').splitlines()

if to_status in options:
parent.db_set("status", to_status)
# if status has a "Replied" option, then update the status
if 'Replied' in options:
to_status = "Open" if doc.sent_or_received=="Received" else "Replied"

if to_status in options:
parent.db_set("status", to_status)

update_mins_to_first_communication(parent, doc)
parent.run_method('notify_communication', doc)


Loading…
取消
儲存