|
|
@@ -33,7 +33,7 @@ def make(doctype=None, name=None, content=None, subject=None, sent_or_received = |
|
|
|
:param sender: Communcation sender (default current user). |
|
|
|
:param recipients: Communication recipients as list. |
|
|
|
:param communication_medium: Medium of communication (default **Email**). |
|
|
|
:param send_mail: Send via email (default **False**). |
|
|
|
:param send_email: Send via email (default **False**). |
|
|
|
:param print_html: HTML Print format to be sent as attachment. |
|
|
|
:param print_format: Print Format name of parent document to be sent as attachment. |
|
|
|
:param attachments: List of attachments as list of files or JSON string. |
|
|
@@ -50,6 +50,9 @@ def make(doctype=None, name=None, content=None, subject=None, sent_or_received = |
|
|
|
if not sender: |
|
|
|
sender = get_formatted_email(frappe.session.user) |
|
|
|
|
|
|
|
if isinstance(recipients, list): |
|
|
|
recipients = ', '.join(recipients) |
|
|
|
|
|
|
|
comm = frappe.get_doc({ |
|
|
|
"doctype":"Communication", |
|
|
|
"subject": subject, |
|
|
|