From 42688f0636c8c29b927a73cfe936512f0239b1fc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 4 Jan 2018 18:12:21 +0530 Subject: [PATCH] Minor fix --- erpnext/accounts/doctype/account/account.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 36f8ce2c3b2..b0a59d00cdf 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -53,14 +53,12 @@ class Account(NestedSet): def set_root_and_report_type(self): if self.parent_account: par = frappe.db.get_value("Account", self.parent_account, - ["report_type", "root_type", "account_type"], as_dict=1) + ["report_type", "root_type"], as_dict=1) if par.report_type: self.report_type = par.report_type if par.root_type: self.root_type = par.root_type - if par.account_type and not self.account_type: - self.account_type = par.account_type if self.is_group: db_value = frappe.db.get_value("Account", self.name, ["report_type", "root_type"], as_dict=1)