From 171e8b06f83ea79a7b76dd6edf5252c1684fc076 Mon Sep 17 00:00:00 2001 From: Manuel <57345036+mtraeber@users.noreply.github.com> Date: Thu, 25 Nov 2021 13:30:45 +0100 Subject: [PATCH] Update frappe/email/doctype/email_account/email_account.py Co-authored-by: gavin --- frappe/email/doctype/email_account/email_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index 18c9ca1737..1e5d1dc0ba 100755 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -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()