|
|
@@ -3,8 +3,10 @@ |
|
|
|
|
|
|
|
frappe.ui.form.on("Error Log", { |
|
|
|
refresh: function(frm) { |
|
|
|
frm.disable_save(); |
|
|
|
|
|
|
|
if (frm.doc.reference_doctype && frm.doc.reference_name) { |
|
|
|
frm.add_custom_button(__("Show Errors for This Document"), function() { |
|
|
|
frm.add_custom_button(__("Show Related Errors"), function() { |
|
|
|
frappe.set_route("List", "Error Log", { |
|
|
|
reference_doctype: frm.doc.reference_doctype, |
|
|
|
reference_name: frm.doc.reference_name, |
|
|
|