From ace7d787ea4efee8246bd055c655cbeb1ecc214e Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 29 Aug 2013 14:00:26 +0530 Subject: [PATCH] [communications] [minor] Code cleanup so it can be extended by custom script --- core/doctype/communication/communication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/doctype/communication/communication.py b/core/doctype/communication/communication.py index 2b2fc7e6a1..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,