Merge branch 'master' of github.com:webnotes/wnframework
This commit is contained in:
commit
73f504ca58
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue