Files
odoo_source/addons/account/tests
guva-odoo f648aedd2b [FIX] account: seek for lines for old outstanding accounts
When having reconciled a payment with an invoice
after having changed the outstanding receipts account
on the bank journal, we get an error when unreconciliing
the payment and the move.

Steps:

- Create two new outstanding receipts accounts X and Y
- Set X as outstandings receipts account on the Bank journal
- Create a manual customer payment P for $100, confirm
- On Bank journal, change the outstanding receipts account from
  X to Y
- Create and confirm an invoice for $100
- Reconcile with payment P from the widget
- Unreconcile or reset invoice to draft
-> Error: "Journal Entry %s is not valid. In order to proceed,
the journal items must include one and only one outstanding
payments/receipts account."

opw-3659092

closes odoo/odoo#155558

Signed-off-by: Laurent Smet (las) <las@odoo.com>
2024-03-04 09:52:02 +00:00
..