[feature] Allowed custom root accounts in Chart of Accounts

This commit is contained in:
Nabin Hait
2015-11-30 17:53:08 +05:30
parent 3617942ff7
commit 8c4e043747
4 changed files with 46 additions and 14 deletions

View File

@@ -134,6 +134,8 @@ def add_ac(args=None):
ac.update(args)
ac.old_parent = ""
ac.freeze_account = "No"
if ac.get("is_root"):
ac.flags.ignore_mandatory = True
ac.insert()
return ac.name