make root_type null if not root (#11626)
This commit is contained in:
parent
30dc9a14c6
commit
1b4894c33a
@ -257,6 +257,8 @@ def add_ac(args=None):
|
||||
if cint(ac.get("is_root")):
|
||||
ac.parent_account = None
|
||||
ac.flags.ignore_mandatory = True
|
||||
else:
|
||||
ac.root_type = None
|
||||
|
||||
ac.insert()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user