From 87f188afc6d4c05e5eb462ea912e42373cf56000 Mon Sep 17 00:00:00 2001 From: tdi-odoo Date: Fri, 16 Sep 2016 15:30:18 +0200 Subject: [PATCH] [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. --- addons/account/wizard/account_invoice_refund.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index a2b6a240ad9..afc3c0609ef 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -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, })