diff --git a/core/doctype/communication/communication.py b/core/doctype/communication/communication.py index 14daa88691..80c7765bd5 100644 --- a/core/doctype/communication/communication.py +++ b/core/doctype/communication/communication.py @@ -28,8 +28,8 @@ class DocType(): else: parent.doc.status = "Open" - parent.bean.ignore_permissions = True - parent.bean.save() + parent.ignore_permissions = True + parent.save() @webnotes.whitelist() def make(doctype=None, name=None, content=None, subject=None, @@ -71,6 +71,8 @@ def make(doctype=None, name=None, content=None, subject=None, d.communication_medium = communication_medium if send_email: send_comm_email(d, name, sent_via, print_html, attachments, send_me_a_copy) + + comm.ignore_permissions = True comm.insert() @webnotes.whitelist()