[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
This commit is contained in:
Goffin Simon
2016-07-28 11:59:11 +02:00
parent 7079a0be30
commit 6a711060ae
@@ -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'):