From 2bb845e53f16fdab6b561c6ee7f053afa6a82861 Mon Sep 17 00:00:00 2001 From: shreyas Date: Tue, 31 May 2016 17:15:28 +0530 Subject: [PATCH] [Fix] User allowed to delete the root account in Chart of Accounts --- erpnext/accounts/doctype/account/account.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 03bd5873cca..acc4884daee 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -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():