odoo/odoo#92660

Created by Bugfix, Abdelouahab Laaroussi (abla)
Merged at 72513e90494a5cf7a9b994bfbb372acf4f444b52

Statuses:

label
odoo-dev:13.0-opw-2862601-set_bank_account_credit_note-abla
head
f4bf83382d479cd7060d09ccfe7bd528ec9e29dd
merged
3 years ago by Accounting, William André (wan)
odoo/odoo odoo/enterprise
13.0 #92660
14.0 #93467 #28629
15.0 #94152 #28664

[FIX] account : compute invoice_partner_bank_id when computing bank_partner_id

To reproduce

  • add a bank account to MyCompany
  • create contact who has a bank account
  • create customer invoice for this contact
  • create credit note from this invoice

the Bank Account of the credit note is set to MyCompany's bank account, where it should be
the customer's account

Purpose

when creating the credit note we don't set the field invoice_partner_bank_id

Specification

to solve the issue we compute the field invoice_partner_bank_id when computing the field bank_partner_id

opw-2862601