[communication] [minor]

This commit is contained in:
Rushabh Mehta 2013-09-02 18:52:27 +05:30
parent 0f2b684a45
commit 98429afe91

View File

@ -51,7 +51,7 @@ erpnext.LeadController = wn.ui.form.Controller.extend({
} }
cur_frm.communication_view = new wn.views.CommunicationList({ cur_frm.communication_view = new wn.views.CommunicationList({
list: wn.model.get("Communication", {"lead": this.frm.doc.name}), list: wn.model.get("Communication", {"parenttype": "Lead", "parent":this.frm.doc.name}),
parent: this.frm.fields_dict.communication_html.wrapper, parent: this.frm.fields_dict.communication_html.wrapper,
doc: this.frm.doc, doc: this.frm.doc,
recipients: this.frm.doc.email_id recipients: this.frm.doc.email_id