[Fix] chart of accounts root type is mandatory issue in charts.erpnext.com (#13467)
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index b214908..ab194f4 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -252,16 +252,11 @@
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()