瀏覽代碼

Show all recipients in sent-to message

version-14
Nabin Hait 10 年之前
父節點
當前提交
f7016664cc
共有 3 個文件被更改,包括 6 次插入3 次删除
  1. +4
    -1
      frappe/core/doctype/communication/communication.py
  2. +1
    -1
      frappe/email/doctype/email_account/test_email_account.py
  3. +1
    -1
      frappe/public/js/frappe/views/communication.js

+ 4
- 1
frappe/core/doctype/communication/communication.py 查看文件

@@ -254,7 +254,10 @@ def make(doctype=None, name=None, content=None, subject=None, sent_or_received =
recipients = comm.get_recipients()
comm.send(print_html, print_format, attachments, send_me_a_copy=send_me_a_copy, recipients=recipients)

return ", ".join(recipients) if recipients else None
return {
"name": comm.name,
"recipients": ", ".join(recipients) if recipients else None
}

@frappe.whitelist()
def get_convert_to():


+ 1
- 1
frappe/email/doctype/email_account/test_email_account.py 查看文件

@@ -90,7 +90,7 @@ class TestEmailAccount(unittest.TestCase):
# send
sent_name = make(subject = "Test", content="test content",
recipients="test_receiver@example.com", sender="test@example.com",
send_email=True)
send_email=True)["name"]

sent_mail = email.message_from_string(frappe.get_last_doc("Bulk Email").message)
with open(os.path.join(os.path.dirname(__file__), "test_mails", "reply-1.raw"), "r") as f:


+ 1
- 1
frappe/public/js/frappe/views/communication.js 查看文件

@@ -328,7 +328,7 @@ frappe.views.CommunicationComposer = Class.extend({
callback: function(r) {
if(!r.exc) {
if(form_values.send_email)
msgprint(__("Email sent to {0}", [r.message]));
msgprint(__("Email sent to {0}", [r.message["recipients"]]));
me.dialog.hide();

if (cur_frm) {


Loading…
取消
儲存