[fix] Allowed deletion of root account

This commit is contained in:
Nabin Hait 2016-03-31 11:57:54 +05:30
parent 6123560f51
commit 91a58808c0

View File

@ -189,9 +189,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():