From 745c2658ebdd0b7898c99ecf981c9e661864a05e Mon Sep 17 00:00:00 2001 From: Zlash65 Date: Mon, 8 Jan 2018 11:53:52 +0530 Subject: [PATCH] delete root node allow --- erpnext/accounts/doctype/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index b0a59d00cd..448cc83dfb 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -163,7 +163,7 @@ class Account(NestedSet): if self.check_gle_exists(): throw(_("Account with existing transaction can not be deleted")) - super(Account, self).on_trash() + super(Account, self).on_trash(True) def before_rename(self, old, new, merge=False): # Add company abbr if not provided