[Fix] User allowed to delete the root account in Chart of Accounts

This commit is contained in:
shreyas 2016-05-31 17:15:28 +05:30
parent fd5d0db6e2
commit 2bb845e53f

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