mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Fixed update method
This commit is contained in:
@@ -47,8 +47,10 @@ class Appointment(Document):
|
|||||||
subject=_('Appointment Confirmation'))
|
subject=_('Appointment Confirmation'))
|
||||||
frappe.msgprint('Please check your email to confirm the appointment')
|
frappe.msgprint('Please check your email to confirm the appointment')
|
||||||
|
|
||||||
def on_update():
|
def on_update(self):
|
||||||
# Sync Calednar
|
# Sync Calednar
|
||||||
|
if not self.calendar_event:
|
||||||
|
return
|
||||||
cal_event = frappe.get_doc('Event',self.calendar_event)
|
cal_event = frappe.get_doc('Event',self.calendar_event)
|
||||||
cal_event.starts_on = self.scheduled_time
|
cal_event.starts_on = self.scheduled_time
|
||||||
cal_event.save()
|
cal_event.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user