From e372eb83cd08064ffca7564ef2c399579fc0ae01 Mon Sep 17 00:00:00 2001 From: Robin Baumgartner Date: Thu, 15 Nov 2012 10:46:54 +0100 Subject: [PATCH] Do not copy deferrals when copying account issue2892 review580004 --- account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account.py b/account.py index b68f18d39d..03c809146f 100644 --- a/account.py +++ b/account.py @@ -843,6 +843,7 @@ class Account(ModelSQL, ModelView): default = {} default['left'] = 0 default['right'] = 0 + default.setdefault('deferrals', []) new_accounts = super(Account, cls).copy(accounts, default=default) cls._rebuild_tree('parent', None, 0) return new_accounts