fix: readability
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
This commit is contained in:
parent
5e4ec85574
commit
96930e25f3
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user