Merge pull request #12495 from netchampfaris/hotfix-add-ac-2

[fix] is_root check
This commit is contained in:
Saurabh
2018-01-15 18:35:54 +05:30
committed by GitHub

View File

@@ -252,7 +252,7 @@ def add_ac(args=None):
if not ac.parent_account:
ac.parent_account = args.get("parent")
if ac.is_root:
if getattr(ac, 'is_root', None):
ac.parent_account=''
ac.old_parent = ""