Merge pull request #12370 from Zlash65/fix-root-node-delete
[Fix] Delete root node for account
This commit is contained in:
commit
50b6d79758
@ -163,7 +163,7 @@ class Account(NestedSet):
|
|||||||
if self.check_gle_exists():
|
if self.check_gle_exists():
|
||||||
throw(_("Account with existing transaction can not be deleted"))
|
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):
|
def before_rename(self, old, new, merge=False):
|
||||||
# Add company abbr if not provided
|
# Add company abbr if not provided
|
||||||
|
Loading…
x
Reference in New Issue
Block a user