From 91a58808c04c3ecb8d9f4be7983c2038be6e1951 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 31 Mar 2016 11:57:54 +0530 Subject: [PATCH] [fix] Allowed deletion of root account --- 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 1f9c74df10a..104bef73e98 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -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():