Merge pull request #12370 from Zlash65/fix-root-node-delete

[Fix] Delete root node for account
This commit is contained in:
Prateeksha Singh 2018-01-08 12:51:31 +05:30 committed by GitHub
commit 50b6d79758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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