[fix] Opportunity communication listing
This commit is contained in:
parent
67d249eea9
commit
f0075b9ce2
@ -28,7 +28,7 @@ erpnext.selling.Opportunity = frappe.ui.form.Controller.extend({
|
|||||||
|
|
||||||
if(!this.frm.doc.__islocal) {
|
if(!this.frm.doc.__islocal) {
|
||||||
cur_frm.communication_view = new frappe.views.CommunicationList({
|
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,
|
parent: cur_frm.fields_dict.communication_html.wrapper,
|
||||||
doc: this.frm.doc,
|
doc: this.frm.doc,
|
||||||
recipients: this.frm.doc.contact_email
|
recipients: this.frm.doc.contact_email
|
||||||
|
Loading…
x
Reference in New Issue
Block a user