[minor] communication, webnotes/erpnext#790

This commit is contained in:
Rushabh Mehta
2013-09-04 16:20:18 +05:30
parent 140f9052a9
commit 090d410498
4 changed files with 8 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ wn.require('app/controllers/js/contact_address_common.js');
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