mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] rma: Perform refund with proper view
Not indicating account.invoice, it takes the default that is the vendor bill view. We force the suitable one.
This commit is contained in:
committed by
Nikolaus Weingartmair
parent
84874cf6ee
commit
2df288c982
@@ -573,7 +573,7 @@ class Rma(models.Model):
|
||||
invoice_form = Form(self.env['account.invoice'].with_context(
|
||||
default_type='out_refund',
|
||||
company_id=rmas[0].company_id.id,
|
||||
))
|
||||
), "account.invoice_form")
|
||||
rmas[0]._prepare_refund(invoice_form, origin)
|
||||
refund = invoice_form.save()
|
||||
for rma in rmas:
|
||||
|
||||
Reference in New Issue
Block a user