fix: codacy fixes
This commit is contained in:
parent
b0ba6325d7
commit
f1d413d9c8
1 changed files with 7 additions and 7 deletions
|
|
@ -32,13 +32,13 @@ frappe.ui.form.on('Auto Repeat', {
|
|||
if(!frm.doc.__unsaved) {
|
||||
let label = __('View {0}', [__(frm.doc.reference_doctype)]);
|
||||
frm.add_custom_button(__(label),
|
||||
function() {
|
||||
frappe.route_options = {
|
||||
"auto_repeat": frm.doc.name,
|
||||
};
|
||||
frappe.set_route("List", frm.doc.reference_doctype);
|
||||
}
|
||||
);
|
||||
function() {
|
||||
frappe.route_options = {
|
||||
"auto_repeat": frm.doc.name,
|
||||
};
|
||||
frappe.set_route("List", frm.doc.reference_doctype);
|
||||
}
|
||||
);
|
||||
frappe.auto_repeat.render_schedule(frm);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue