Moved email to appoitnmetn doctype

This commit is contained in:
Pranav Nachanekar 2019-09-23 11:28:17 +05:30
parent f8cc86bfed
commit dcfc849946
2 changed files with 4 additions and 2 deletions

View File

@ -49,7 +49,9 @@ class Appointment(Document):
def on_update():
# Sync Calednar
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.save()
def set_verified(self,email):
if not email == self.email:

View File

@ -98,7 +98,7 @@ def create_appointment(date, time, contact):
appointment.customer_phone_number = contact['number']
appointment.customer_skype = contact['skype']
appointment.customer_details = contact['notes']
appointment.lead = contact['email']
appointment.email = contact['email']
appointment.status = 'Open'
appointment.insert()