Skip to content
Snippets Groups Projects
Commit 8c0c285e authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] account: bank account on refund


- Create a customer invoice
- Set a bank account for payment
- Validate
- Add a credit note, choose 'Modify'

The bank account is not kept on the modified invoice.

We add the field since it makes sense to keep the information.

opw-2244527

closes odoo/odoo#50270

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 3da37bb2
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ class AccountInvoiceRefund(models.TransientModel):
'date': date,
'origin': inv.origin,
'fiscal_position_id': inv.fiscal_position_id.id,
'partner_bank_id': inv.partner_bank_id.id,
})
for field in inv_obj._get_refund_common_fields():
if inv_obj._fields[field].type == 'many2one':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment