mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 05:39:12 +00:00
fix codacy
This commit is contained in:
@@ -5,13 +5,13 @@ frappe.ui.form.on('Appointment', {
|
|||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
if(frm.doc.lead){
|
if(frm.doc.lead){
|
||||||
frm.add_custom_button(__(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){
|
if(frm.doc.calendar_event){
|
||||||
frm.add_custom_button(__(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);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user