fix: readability

Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
This commit is contained in:
Pranav Nachnekar 2019-10-09 08:31:37 +00:00 committed by GitHub
parent 5e4ec85574
commit 96930e25f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,12 +5,12 @@ frappe.ui.form.on('Appointment', {
refresh: function(frm) {
if(frm.doc.lead){
frm.add_custom_button(frm.doc.lead,()=>{
frappe.set_route("Form","Lead",frm.doc.lead);
frappe.set_route("Form", "Lead", frm.doc.lead);
});
}
if(frm.doc.calendar_event){
frm.add_custom_button(__(frm.doc.calendar_event),()=>{
frappe.set_route("Form","Event",frm.doc.calendar_event);
frappe.set_route("Form", "Event", frm.doc.calendar_event);
});
}
}

View File

@ -35,7 +35,7 @@ class Appointment(Document):
self.lead = self.find_lead_by_email()
def after_insert(self):
if(self.lead):
if self.lead:
# Create Calendar event
self.create_calendar_event()
self.auto_assign()
@ -63,7 +63,7 @@ class Appointment(Document):
return get_url(verify_route + '?' + get_signed_params(params))
def on_change(self):
# Sync Calednar
# Sync Calendar
if not self.calendar_event:
return
cal_event = frappe.get_doc('Event', self.calendar_event)