From b2d3b8a5ffc97bf83298bd696d4332f4a17fa8af Mon Sep 17 00:00:00 2001 From: Frappe PR Bot Date: Mon, 30 Aug 2021 15:46:28 +0530 Subject: [PATCH] fix: replace cur_frm with frm (bp #27210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 327071cb9078840aa463fa3c2d80ac2ef8a6ab8b) Co-authored-by: François de Ryckel --- erpnext/accounts/doctype/account/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/account/account.js b/erpnext/accounts/doctype/account/account.js index f7f1a5fb15a..7a1d7359488 100644 --- a/erpnext/accounts/doctype/account/account.js +++ b/erpnext/accounts/doctype/account/account.js @@ -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,