diff options
| author | Raf Geens <raf@odoo.com> | 2021-04-15 11:26:25 +0000 |
|---|---|---|
| committer | Raf Geens <raf@odoo.com> | 2021-04-15 12:20:36 +0000 |
| commit | e9538d9cee092e034b85187a2eae857349f42ce7 (patch) | |
| tree | edace66466e7106e0657a45b0a18335b189c9a2b /addons/web/static/src/js/core | |
| parent | e179011b3118fe355ea33be194585f674d40df3f (diff) | |
[FIX] account: Traceback on multiple auto-validation candidates
When an auto-validating reconciliation model is defined for matching
bank statement lines to invoices, it was possible to get a traceback
when the bank statement lines were in a certain order and matched in a
certain way.
In particular, if the first bank statement line is priority 3
(communication_flag True) and the amount is an exact match with the
invoice, it will be instantly reconciled. If there's a second line
that's a priority 5 match, it crashed because _filter_candidates didn't
take into account that candidates_by_priority could be empty if the
candidates were already reconciled.
Instead we just return an empty list of candidates and priorities when
this happens.
closes odoo/odoo#69309
Ticket: 2507189
Signed-off-by: William André (wan) <wan@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/core')
0 files changed, 0 insertions, 0 deletions
