diff --git a/invoice.py b/invoice.py index 2168c52fe4..ae0fbd3d3a 100644 --- a/invoice.py +++ b/invoice.py @@ -47,6 +47,7 @@ class Invoice(metaclass=PoolMeta): def copy(cls, invoices, default=None): if default is None: default = {} - default = default.copy() - default['open_date'] = None + else: + default = default.copy() + default.setdefault('open_date', None) return super(Invoice, cls).copy(invoices, default=default)