From d64135b2d2bc5bb9020fe7ccdd2b784a5f9bcfd0 Mon Sep 17 00:00:00 2001 From: Pranav Nachnekar Date: Wed, 29 Jan 2020 07:31:25 +0000 Subject: [PATCH] fix: linking party in calendar event of appointment (#20458) --- erpnext/crm/doctype/appointment/appointment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/appointment/appointment.py b/erpnext/crm/doctype/appointment/appointment.py index 1988bb6169..63efeb3cb6 100644 --- a/erpnext/crm/doctype/appointment/appointment.py +++ b/erpnext/crm/doctype/appointment/appointment.py @@ -174,7 +174,7 @@ class Appointment(Document): 'status': 'Open', 'type': 'Public', 'send_reminder': frappe.db.get_single_value('Appointment Booking Settings', 'email_reminders'), - 'event_participants': [dict(reference_doctype='Lead', reference_docname=self.party)] + 'event_participants': [dict(reference_doctype=self.appointment_with, reference_docname=self.party)] }) employee = _get_employee_from_user(self._assign) if employee: