From e6d2ed6d1f098f86facc8f42a690b61bd952f809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 17 Jul 2008 21:24:50 +0200 Subject: [PATCH] Fix duplicate invoice --- invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/invoice.py b/invoice.py index f923da8f89..693d5b2ddc 100644 --- a/invoice.py +++ b/invoice.py @@ -836,6 +836,8 @@ class Invoice(OSV): default['payment_lines'] = False default['lines'] = False default['taxes'] = False + default['date'] = datetime.date.today() + default['lines_to_pay'] = False new_id = super(Invoice, self).copy(cursor, user, invoice_id, default=default, context=context)