Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account: Fix invoice reversing default bank
Problem --------- Currently, when reversing a move, the current company is used as recipient bank. 1. Set a bank on a partner A 2. Go to Accounting 3. Set A as the customer of the invoice 4. Set a bank under 'recipient bank' in Other Info tab 5. Post the invoice 6. "Add Credit Note" 7. Fill in with wathever and press Reverse -> The Other Info tab of the reverse move has the company bank and not the customer's Objective --------- Obtain a similar behavior as when a credit note is created directly: have the customer's bank set as recipient bank. Solution --------- Provide a default bank id that is set, if possible, to one of the customer's bank. opw-4035448 closes odoo#173640 Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
- Loading branch information