Set email account while creating new documents based on email
This commit is contained in:
parent
b5f4959f74
commit
ec45bc767f
1 changed files with 3 additions and 0 deletions
|
|
@ -492,6 +492,9 @@ class EmailAccount(Document):
|
|||
if self.sender_field:
|
||||
parent.set(self.sender_field, frappe.as_unicode(email.from_email))
|
||||
|
||||
if parent.meta.has_field("email_account"):
|
||||
parent.email_account = self.name
|
||||
|
||||
parent.flags.ignore_mandatory = True
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue