commit | 1b4894c33ae4ce06176bcb6c203d5c4fd6e7bfe0 | [log] [tgz] |
---|---|---|
author | Zarrar <zarrar65@gmail.com> | Fri Nov 17 14:32:12 2017 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Fri Nov 17 14:32:12 2017 +0530 |
tree | f4334156577f577e5a597ddc93c9ffb83c1e1209 | |
parent | 30dc9a14c61a7cfee60bb0eadefb3213159312a8 [diff] |
make root_type null if not root (#11626)
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index cd940ab..d592816 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py
@@ -257,6 +257,8 @@ if cint(ac.get("is_root")): ac.parent_account = None ac.flags.ignore_mandatory = True + else: + ac.root_type = None ac.insert()