diff options
| author | oco-odoo <oco@odoo.com> | 2021-05-03 15:15:43 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2021-05-03 15:52:49 +0000 |
| commit | b5800c9d2088df2bb9c4fbe0fed91c7ef24299c5 (patch) | |
| tree | e080c5c96ebe0ff3f7eb68c722384a4aec86ed31 /addons/web/static/src/xml | |
| parent | 2480e9593808126ade2537cc2ae40b85080ba441 (diff) | |
[FIX] account: reconciliation models: fix priorities when matching amls from payments
Since the payment refactoring, the structured reference of a payment is stored in its ref field, not payment_reference like for invoices. This caused payments never to be matched with highest priorities, as payment_reference_flag was always false, and only communication_flag could match.
To reproduce:
- Have a reconcile model with match_total_amount=False.
- Create a statement line with communication a1b2c3 for 1000
- Create 3 payments:
> 500, with memo a1b2c3
> 500, with memo a1b2c3 (so, the same one)
> 500, with memo d1e2f3
- Open the reconciliation widget for your statement line
===> The 3 payments are matched, while only the two first ones should have been, as they were exact matches for the communication, and should hence have received higher priority.
closes odoo/odoo#70277
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
