replace cur_frm with frm (#27210)
This commit is contained in:
parent
2caa090991
commit
327071cb90
@ -74,7 +74,7 @@ frappe.ui.form.on('Account', {
|
||||
});
|
||||
} else if (cint(frm.doc.is_group) == 0
|
||||
&& frappe.boot.user.can_read.indexOf("GL Entry") !== -1) {
|
||||
cur_frm.add_custom_button(__('Ledger'), function () {
|
||||
frm.add_custom_button(__('Ledger'), function () {
|
||||
frappe.route_options = {
|
||||
"account": frm.doc.name,
|
||||
"from_date": frappe.sys_defaults.year_start_date,
|
||||
|
Loading…
x
Reference in New Issue
Block a user