diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index b0a59d00cdf..448cc83dfba 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