Fix: Notify via email on new post on my company page

This commit is contained in:
Anand Doshi
2012-01-12 13:46:46 +05:30
parent a550c06729
commit cb1f361461
2 changed files with 15 additions and 6 deletions

View File

@@ -55,9 +55,9 @@ class DocType:
"""
Prepares message body
"""
if args.get('type') and args.get('doctype'):
if args.get('type'):
msg_dict = {}
msg_dict['message'] = self.get_message(args.get('type'))
msg_dict['message'] = args.get('message') or self.get_message(args.get('type'))
msg_dict['company'] = Document('Control Panel', 'Control Panel').company_name
msg_dict['salutation'] = "Hi" + (args.get('contact_name') and (" " + args.get('contact_name')) or "")
msg_dict['send_from'] = webnotes.conn.sql("""\