From eedc0ac68188a070ff90af874fee69478dde0180 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 2 Apr 2018 12:49:38 +0530 Subject: [PATCH] [Fix] chart of accounts root type is mandatory issue in charts.erpnext.com (#13467) --- erpnext/accounts/utils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index b214908f62f..ab194f48d69 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -252,16 +252,11 @@ def add_ac(args=None): if not ac.parent_account: ac.parent_account = args.get("parent") - if getattr(ac, 'is_root', None): - ac.parent_account='' - ac.old_parent = "" ac.freeze_account = "No" if cint(ac.get("is_root")): ac.parent_account = None ac.flags.ignore_mandatory = True - else: - ac.root_type = None ac.insert()