Added buttons to linked docs
This commit is contained in:
parent
9c0f462336
commit
6b0fea16b6
@ -2,7 +2,16 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Appointment', {
|
frappe.ui.form.on('Appointment', {
|
||||||
// refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
|
if(frm.doc.lead){
|
||||||
// }
|
frm.add_custom_button(__(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)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user