From 6a711060ae380ffcb9342579ff11b9b53aee0712 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 28 Jul 2016 11:11:34 +0200 Subject: [PATCH] [FIX] account: fiscal position in compute_refund When choosing to refund an invoice with refund method="create refund, reconcile and create a new draft invoice" , the fiscal position of the refund invoice must be kept in the new draft invoice. opw:683311 --- addons/account/wizard/account_invoice_refund.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index d309992cf97..3190e46c6a5 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -202,7 +202,8 @@ class account_invoice_refund(osv.osv_memory): 'invoice_line': invoice_lines, 'tax_line': tax_lines, 'period_id': period, - 'name': description + 'name': description, + 'fiscal_position': inv.fiscal_position.id }) for field in ('partner_id', 'account_id', 'currency_id', 'payment_term', 'journal_id'):