fix: attach email account name to the append_to doctype
This commit is contained in:
parent
daf8f55458
commit
a5ab9c12b5
1 changed files with 4 additions and 1 deletions
|
|
@ -850,6 +850,9 @@ class InboundMail(Email):
|
|||
if email_fields.sender_name_field:
|
||||
parent.set(email_fields.sender_name_field, frappe.as_unicode(self.from_real_name))
|
||||
|
||||
if email_fields.sender_email_account_field:
|
||||
parent.set(email_fields.sender_email_account_field, self.email_account.name)
|
||||
|
||||
parent.flags.ignore_mandatory = True
|
||||
|
||||
try:
|
||||
|
|
@ -891,7 +894,7 @@ class InboundMail(Email):
|
|||
"""Return Email related fields of a doctype."""
|
||||
fields = frappe._dict()
|
||||
|
||||
email_fields = ["subject_field", "sender_field", "sender_name_field"]
|
||||
email_fields = ["subject_field", "sender_field", "sender_name_field", "sender_email_account_field"]
|
||||
meta = frappe.get_meta(doctype)
|
||||
|
||||
for field in email_fields:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue