[fix] is_root check

This commit is contained in:
Faris Ansari 2018-01-15 18:24:53 +05:30
parent a2426fcc9e
commit f18cd2eaf7

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 = ""