Fixed update method

This commit is contained in:
Pranav Nachanekar 2019-09-23 14:23:04 +05:30
parent b6b27d9256
commit 3eccb84eaa

View File

@ -47,8 +47,10 @@ class Appointment(Document):
subject=_('Appointment Confirmation'))
frappe.msgprint('Please check your email to confirm the appointment')
def on_update():
def on_update(self):
# Sync Calednar
if not self.calendar_event:
return
cal_event = frappe.get_doc('Event',self.calendar_event)
cal_event.starts_on = self.scheduled_time
cal_event.save()