Skip to content

Commit

Permalink
fix: OM transfer now
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Nov 7, 2024
1 parent 55dc3f5 commit 47e03dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mail/mail/doctype/outgoing_mail/outgoing_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ def transfer_to_mail_server(self) -> None:
if not frappe.flags.force_transfer:
self.reload()

# Ensure the document is submitted and in "Queuing" status
if not (self.docstatus == 1 and self.status == "Queuing" and self.failed_count < 3):
# Ensure the document is submitted and has "Queuing" or "Pending" status
if not (self.docstatus == 1 and self.status in ["Queuing", "Pending"] and self.failed_count < 3):
return

try:
Expand Down

0 comments on commit 47e03dd

Please sign in to comment.