Update frappe/email/doctype/email_account/email_account.py
Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
parent
1bbba495f8
commit
171e8b06f8
1 changed files with 1 additions and 1 deletions
|
|
@ -549,7 +549,7 @@ class EmailAccount(Document):
|
|||
|
||||
def on_trash(self):
|
||||
"""Clear communications where email account is linked"""
|
||||
Communication = frappe.qb.from_("Communication")
|
||||
Communication = frappe.qb.DocType("Communication")
|
||||
frappe.qb.update(Communication) \
|
||||
.set(Communication.email_account == "") \
|
||||
.where(Communication.email_account == self.name).run()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue