delete root node allow

This commit is contained in:
Zlash65 2018-01-08 11:53:52 +05:30
parent 4702cc0368
commit 745c2658eb

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