From 13539e576b4af88e76c8fac334409487bfa28359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 1 Sep 2018 01:02:03 +0200 Subject: [PATCH] Improve ModelStorage.copy * Allow callable in copy default * Support dotted notation in copy default * Use setdefault in copy * Copy default when needed * Do not set default state in copy * Use callable and dotted notation in copy default issue5576 issue7648 review72291002 --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.py b/account.py index 1dd7cdc694..a4a6c36920 100644 --- a/account.py +++ b/account.py @@ -37,5 +37,5 @@ class MoveLine(metaclass=PoolMeta): default = {} else: default = default.copy() - default.setdefault('dunnings') + default.setdefault('dunnings', None) return super(MoveLine, cls).copy(lines, default=default)