[fix] if is_root is true make parent account empty (#12255)

This commit is contained in:
Saurabh 2018-01-01 16:17:43 +05:30 committed by Nabin Hait
parent 15d53c7912
commit 2ac1835f7d

View File

@ -252,6 +252,9 @@ def add_ac(args=None):
if not ac.parent_account: if not ac.parent_account:
ac.parent_account = args.get("parent") ac.parent_account = args.get("parent")
if ac.is_root:
ac.parent_account=''
ac.old_parent = "" ac.old_parent = ""
ac.freeze_account = "No" ac.freeze_account = "No"
if cint(ac.get("is_root")): if cint(ac.get("is_root")):