From 3ff694bf1e581a495db606db6f30e90c2f35eff9 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 8 Oct 2012 12:32:41 +0530 Subject: [PATCH] fixes in communication creation on sending form email --- webnotes/utils/email_lib/form_email.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webnotes/utils/email_lib/form_email.py b/webnotes/utils/email_lib/form_email.py index 756d4fb278..df335c2880 100644 --- a/webnotes/utils/email_lib/form_email.py +++ b/webnotes/utils/email_lib/form_email.py @@ -146,6 +146,7 @@ class FormEmail: def make_communication(self): """make email communication""" from webnotes.model.doc import Document + from webnotes.utils import nowdate comm = Document('Communication') comm.communication_medium = 'Email' comm.subject = self.subject @@ -153,6 +154,10 @@ class FormEmail: comm.category = 'Sent Mail' comm.action = 'Sent Mail' comm.naming_series = 'COMM-' + comm.user = webnotes.session["user"] + comm.communication_date = nowdate() + comm.email_address = ", ".join(self.recipients) + try: comm_cols = [c[0] for c in webnotes.conn.sql("""desc tabCommunication""")]