Do not copy deferrals when copying account

issue2892
review580004
(transplanted from 75313e5b3c7a767402bcc9c43a19ccef89af15ca)
This commit is contained in:
Robin Baumgartner committed 2012-11-15 10:46:54 +01:00
1 parent f50687b24e
commit 012839824c
1 file changed
+1
+1
View File
@@ -851,6 +851,7 @@ class Account(ModelSQL, ModelView):
default = {}
default['left'] = 0
default['right'] = 0
default.setdefault('deferrals', [])
res = super(Account, self).copy(ids, default=default)
self._rebuild_tree('parent', False, 0)
return res