From 02d987ed13e0feaff94d5091a174e9b3bf461d82 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 17 Feb 2017 15:50:26 +0530 Subject: [PATCH] Minor fix for common tree view --- erpnext/accounts/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index c35ca8222b..c2812d486e 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -242,6 +242,7 @@ def add_ac(args=None): if not args: args = frappe.local.form_dict + args.doctype = "Account" args = make_tree_args(**args) ac = frappe.new_doc("Account") @@ -271,7 +272,8 @@ def add_cc(args=None): if not args: args = frappe.local.form_dict - + + args.doctype = "Cost Center" args = make_tree_args(**args) cc = frappe.new_doc("Cost Center")