fix(minor): consider only email id as sender email for auto email report (#18231)
This commit is contained in:
parent
13e6aca115
commit
43101e0356
1 changed files with 1 additions and 2 deletions
|
|
@ -40,8 +40,7 @@ class AutoEmailReport(Document):
|
|||
|
||||
@property
|
||||
def sender_email(self):
|
||||
email_id, login_id = frappe.db.get_value("Email Account", self.sender, ["email_id", "login_id"])
|
||||
return login_id if login_id else email_id
|
||||
return frappe.db.get_value("Email Account", self.sender, "email_id")
|
||||
|
||||
def validate_emails(self):
|
||||
"""Cleanup list of emails"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue