Communication Issue in Opportunity

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



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/67701f64-3511-4c36-bc5d-8f73648bb61f%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
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
    
     



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/a121c0e5-1d9e-4bcb-9074-299321bd9179%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.