Fix duplicate invoice

This commit is contained in:
Cédric Krier committed 2008-07-17 21:24:50 +02:00
1 parent a50ee903e6
commit e6d2ed6d1f
1 file changed
+2
+2
View File
@@ -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)