[minor] communication, webnotes/erpnext#790
diff --git a/home/__init__.py b/home/__init__.py
index 0861798..9667efd 100644
--- a/home/__init__.py
+++ b/home/__init__.py
@@ -88,5 +88,4 @@
 	if method in ['on_update', 'on_submit']:
 		subject, color = feed_dict.get(doc.doctype, [None, None])
 		if subject:
-			from webnotes.utils import encode_dict
-			make_feed('', doc.doctype, doc.name, doc.owner, subject % encode_dict(doc.fields.copy()), color)
+			make_feed('', doc.doctype, doc.name, doc.owner, subject % doc.fields, color)
diff --git a/selling/doctype/quotation/quotation.js b/selling/doctype/quotation/quotation.js
index fcebe35..ea1b62a 100644
--- a/selling/doctype/quotation/quotation.js
+++ b/selling/doctype/quotation/quotation.js
@@ -62,11 +62,11 @@
 
 		if (!doc.__islocal) {
 			cur_frm.communication_view = new wn.views.CommunicationList({
-				list: wn.model.get("Communication", {"quotation": doc.name}),
+				list: wn.model.get("Communication", {"parent": doc.name, "parenttype": "Quotation"}),
 				parent: cur_frm.fields_dict.communication_html.wrapper,
 				doc: doc,
 				recipients: doc.contact_email
-			});		
+			});
 		}
 		
 		this.quotation_to();
diff --git a/support/doctype/support_ticket/get_support_mails.py b/support/doctype/support_ticket/get_support_mails.py
index fb26e57..fa4f304 100644
--- a/support/doctype/support_ticket/get_support_mails.py
+++ b/support/doctype/support_ticket/get_support_mails.py
@@ -3,7 +3,7 @@
 
 from __future__ import unicode_literals
 import webnotes
-from webnotes.utils import cstr, cint
+from webnotes.utils import cstr, cint, decode_dict
 from webnotes.utils.email_lib import sendmail		
 from webnotes.utils.email_lib.receive import POP3Mailbox
 from core.doctype.communication.communication import make
@@ -31,14 +31,15 @@
 			ticket.doc.save()
 				
 		else:
-			ticket = webnotes.bean([{
+			ticket = webnotes.bean([decode_dict({
 				"doctype":"Support Ticket",
 				"description": mail.content,
 				"subject": mail.subject,
 				"raised_by": mail.from_email,
 				"content_type": mail.content_type,
 				"status": "Open",
-			}])
+			})])
+						
 			ticket.insert()
 			new_ticket = True
 
diff --git a/utilities/doctype/contact/contact.js b/utilities/doctype/contact/contact.js
index 608b1e7..3b5255c 100644
--- a/utilities/doctype/contact/contact.js
+++ b/utilities/doctype/contact/contact.js
@@ -5,7 +5,7 @@
 
 cur_frm.cscript.refresh = function(doc) {
 	cur_frm.communication_view = new wn.views.CommunicationList({
-		list: wn.model.get("Communication", {"contact": doc.name}),
+		list: wn.model.get("Communication", {"parent": doc.name, "parenttype": "Contact"}),
 		parent: cur_frm.fields_dict.communication_html.wrapper,
 		doc: doc,
 		recipients: doc.email_id