mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
fix: replace cur_frm with frm (bp #27210)
(cherry picked from commit 327071cb90)
Co-authored-by: François de Ryckel <f.deryckel@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ frappe.ui.form.on('Account', {
|
|||||||
});
|
});
|
||||||
} else if (cint(frm.doc.is_group) == 0
|
} else if (cint(frm.doc.is_group) == 0
|
||||||
&& frappe.boot.user.can_read.indexOf("GL Entry") !== -1) {
|
&& 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 = {
|
frappe.route_options = {
|
||||||
"account": frm.doc.name,
|
"account": frm.doc.name,
|
||||||
"from_date": frappe.sys_defaults.year_start_date,
|
"from_date": frappe.sys_defaults.year_start_date,
|
||||||
|
|||||||
Reference in New Issue
Block a user