From f0075b9ce274715193addbf48fc207e76f6ac327 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 12 Aug 2014 15:20:39 +0530 Subject: [PATCH] [fix] Opportunity communication listing --- erpnext/selling/doctype/opportunity/opportunity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/opportunity/opportunity.js b/erpnext/selling/doctype/opportunity/opportunity.js index 6ff1abb8954..af31d395153 100644 --- a/erpnext/selling/doctype/opportunity/opportunity.js +++ b/erpnext/selling/doctype/opportunity/opportunity.js @@ -28,7 +28,7 @@ erpnext.selling.Opportunity = frappe.ui.form.Controller.extend({ if(!this.frm.doc.__islocal) { cur_frm.communication_view = new frappe.views.CommunicationList({ - list: frappe.get_list("Communication", {"opportunity": this.frm.doc.name}), + list: frappe.get_list("Communication", {"parent": this.frm.doc.name, "parenttype": "Opportunity"}), parent: cur_frm.fields_dict.communication_html.wrapper, doc: this.frm.doc, recipients: this.frm.doc.contact_email