From 6fe0a3cee3e702642d4619b66f584aed8cc1b820 Mon Sep 17 00:00:00 2001 From: jorxzpagta Date: Wed, 12 Nov 2014 17:02:06 +0800 Subject: [PATCH] Update supplier.js Display Messages on the Communication History --- erpnext/buying/doctype/supplier/supplier.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/buying/doctype/supplier/supplier.js b/erpnext/buying/doctype/supplier/supplier.js index b5c7fb1b27..c3a0f7e491 100644 --- a/erpnext/buying/doctype/supplier/supplier.js +++ b/erpnext/buying/doctype/supplier/supplier.js @@ -22,10 +22,10 @@ cur_frm.cscript.refresh = function(doc, dt, dn) { cur_frm.cscript.make_contact(doc,dt,dn); cur_frm.communication_view = new frappe.views.CommunicationList({ - list: frappe.get_list("Communication", {"supplier": doc.name}), parent: cur_frm.fields_dict.communication_html.wrapper, - doc: doc - }) + doc: doc, + recipients: doc.email_id + }); } }