Linked send_reminder in calendar event
to Appointment Booking Settings
diff --git a/erpnext/crm/doctype/appointment/appointment.py b/erpnext/crm/doctype/appointment/appointment.py
index 6d23f2a..9365301 100644
--- a/erpnext/crm/doctype/appointment/appointment.py
+++ b/erpnext/crm/doctype/appointment/appointment.py
@@ -30,6 +30,7 @@
'starts_on': self.scheduled_time,
'status': 'Open',
'type': 'Private',
+ 'send_reminder': frappe.db.get_single_value('Appointment Booking Settings','email_reminders'),
'event_participants': [dict(reference_doctype = "Lead", reference_docname = self.lead)]
})
appointment_event.insert(ignore_permissions=True)