odoo/odoo#92660
Created by Bugfix, Abdelouahab Laaroussi (abla)
Merged
at 72513e90494a5cf7a9b994bfbb372acf4f444b52
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team for help in case of failure.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- 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