[FIX] Ignore CABA moves when checking 'Reversed' state on invoice
To check if the state 'Reversed' should be set on an invoice. We checked that the full reconciliation moves
only contain the invoice, the reverse move and the potential exchange move. However, it's possible to have
also some CABA moves for the invoice and credit note when the tax used have a CABA transition account which
is reconcilable (eg. tax "IVA(16%) VENTAS"). So if this append the status 'Paid' will be set instead.
Now, we take into account those CABA moves and the status will be set to 'Reversed' accordingly.
opw-2976667
closes odoo/odoo#100380
Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
Loading