Browse Source

[Fix] Updating the child doc

version-14
Manas Solanki 8 years ago
parent
commit
f18721a0f8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      frappe/email/doctype/email_queue/email_queue.py

+ 3
- 3
frappe/email/doctype/email_queue/email_queue.py View File

@@ -37,11 +37,11 @@ def retry_sending(name):
doc = frappe.get_doc("Email Queue", name)
if doc and (doc.status == "Error" or doc.status == "Partially Errored"):
doc.status = "Not Sent"
for d in doc.recipients:
if d.status != 'Sent':
d.status = 'Not Sent'
doc.save(ignore_permissions=True)

frappe.db.sql("""update `tabEmail Queue Recipient` set status='Not Sent', modified=%s where parent=%s""",
(now_datetime(), name))

@frappe.whitelist()
def send_now(name):
send_one(name, now=True)


Loading…
Cancel
Save