make root_type null if not root (#11626)

This commit is contained in:
Zarrar 2017-11-17 14:32:12 +05:30 committed by Rushabh Mehta
parent 30dc9a14c6
commit 1b4894c33a

View File

@ -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()