feat: add refdoc button to error log

This commit is contained in:
David 2024-06-21 11:54:03 +02:00
parent 9a809f1f29
commit 6e2e6e7d0b
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D

View file

@ -12,6 +12,9 @@ frappe.ui.form.on("Error Log", {
reference_name: frm.doc.reference_name,
});
});
frm.add_custom_button(__(frm.doc.reference_name), function () {
frappe.set_route("Form", frm.doc.reference_doctype, frm.doc.reference_name);
});
}
},
});