[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:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user