From 1b4894c33ae4ce06176bcb6c203d5c4fd6e7bfe0 Mon Sep 17 00:00:00 2001 From: Zarrar Date: Fri, 17 Nov 2017 14:32:12 +0530 Subject: [PATCH] make root_type null if not root (#11626) --- erpnext/accounts/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index cd940ab584..d592816692 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -257,6 +257,8 @@ def add_ac(args=None): if cint(ac.get("is_root")): ac.parent_account = None ac.flags.ignore_mandatory = True + else: + ac.root_type = None ac.insert()