Communication Issue in Opportunity

20 views
Skip to first unread message

Pranali Khatode

unread,
Mar 10, 2014, 10:38:25 AM3/10/14
to erpnext-dev...@googlegroups.com
Hi,

I am facing issue with communication in Opportunity that  it is not showing the Communication History (like in Lead form ), instead records goes into
communications table which is under More Info section.



Regards
Pranali

Pranali Khatode

unread,
Mar 11, 2014, 1:40:17 AM3/11/14
to erpnext-dev...@googlegroups.com
Hi,
  
      Solution for above problem is as follows :

Remove the code on opportunity onload function: 

list: wn.model.get("Communication", {"opportunity": this.frm.doc.name}), 

and replace with the following code

list: wn.model.get("Communication", {"parenttype":"Opportunity","parent": this.frm.doc.name}),


so your code look like:

cur_frm.communication_view = new wn.views.CommunicationList({
list: wn.model.get("Communication", {"parenttype":"Opportunity","parent": this.frm.doc.name}),
parent: cur_frm.fields_dict.communication_html.wrapper,
doc: this.frm.doc,
recipients: this.frm.doc.contact_email
});


Regards

Pranali
    
     
Reply all
Reply to author
Forward
0 new messages