Merge pull request #5424 from shreyasp/issue/delete-root-account

[Fix] User allowed to delete the root account in Chart of Accounts
This commit is contained in:
Nabin Hait 2016-05-31 17:37:08 +05:30
commit b0f7e5b23f

View File

@ -193,9 +193,6 @@ class Account(Document):
def validate_trash(self):
"""checks gl entries and if child exists"""
if not self.parent_account:
throw(_("Root account can not be deleted"))
if self.check_gle_exists():
throw(_("Account with existing transaction can not be deleted"))
if self.check_if_child_exists():