[FIX] account: remove reason in new draft invoice created from refund

This fix prevents from giving the reason of the refund to the draft invoice created if you select the 'modify' option when refunding an invoice, which now keeps the description of the original invoice.
This commit is contained in:
tdi-odoo
2016-09-26 14:43:12 +02:00
committed by qdp-odoo
parent 212f539bec
commit 87f188afc6
@@ -98,7 +98,6 @@ class AccountInvoiceRefund(models.TransientModel):
'invoice_line_ids': invoice_lines,
'tax_line_ids': tax_lines,
'date': date,
'name': description,
'origin': inv.origin,
'fiscal_position_id': inv.fiscal_position_id.id,
})