[fix] if is_root is true make parent account empty (#12255)
This commit is contained in:
parent
15d53c7912
commit
2ac1835f7d
@ -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")):
|
||||||
|
Loading…
Reference in New Issue
Block a user