[FIX]Setting the customer reference of the original invoice in the draft invoice...
[odoo/odoo.git] / addons / account / wizard / account_invoice_refund.py
index d62fd33..523b602 100644 (file)
@@ -195,7 +195,7 @@ class account_invoice_refund(osv.osv_memory):
                             'invoice_line': invoice_lines,
                             'tax_line': tax_lines,
                             'period_id': period,
-                            'name': description
+                            'name': inv.name
                         })
                         for field in ('partner_id', 'account_id', 'currency_id',
                                          'payment_term', 'journal_id'):