Commit Graph

18 Commits

Author SHA1 Message Date
Giedrius Slavinskas
2601bf53e2 [FIX] account_reconciliation_widget: Show correct currency
When reconciling bank statement lines in a foreign currency,
it shows amounts in a company's currency while the symbol
is shown of foreign currency. Wrong currency appears on counterpart
lines and open balance line.

The wrong currency symbol only effects representation in the UI.
When reconciliation is validated, it sets company's currency on
account move lines.
2023-06-23 20:40:28 +03:00
Pedro M. Baeza
f78f1f4a57 [IMP] account_reconciliation_widget: Skip business models synchronization on reconcile
There's no need to synchronize business models (payments and statement
lines) when the reconcile is done, as the only value written in
the journal item is `full_reconcile_id`.

This way, we speed up the reconciliation process through the widget.
2023-06-17 08:33:11 +02:00
OCA-git-bot
840bb62dd8 Merge PR #531 into 15.0
Signed-off-by pedrobaeza
2023-06-03 09:36:24 +00:00
Pedro M. Baeza
f86c137e1e [FIX] account_reconciliation_widget: Hide own reconcilable items
If the journal destination account is reconcilable, as the journal entry
is pre-generated before reconciling, the line is appearing in the
reconciliation widget, provoking user confusion and error if that one
is selected.

We explicitly exclude in the matching domain for avoiding the problem.

TT42983
2023-05-31 16:52:02 +02:00
singwangho
7313df9b6a handle legacy case where st_line.currency_id is used as foreign currency 2023-03-16 16:07:22 +00:00
singwangho
9735b0c8e9 add basic support for statement line foreign currency 2023-03-03 06:51:08 +00:00
Pedro M. Baeza
f343ccfa3c [FIX] account_reconciliation_widget: Don't suggest non posted moves
Fixes #429
2022-04-14 17:11:23 +02:00
Pedro M. Baeza
7c98fd89fa [IMP] account_reconcile_widget: Allow to reconcile payment/debit orders from OCA/bank-payment
Payments without payment_id related aren't showed in statement
reconciliation.

With this change, we show them as blue lines, the same as other coming
from Odoo core payments.

TT34508
2022-03-11 07:37:38 +01:00
kelvzxu
7f6d1a2ec6 [15.0][MIG] account_reconciliation_widget:Migration to 15.0 2022-02-02 22:44:06 +07:00
kelvzxu
842508fb86 [IMP] account_reconciliation_widget: black, isort, prettier 2022-02-02 22:44:06 +07:00
clementmbr
1597e6f65e [FIX] account_reconciliation_widget: better SQL request 2022-01-26 16:33:17 +07:00
Téo Goddet
62cd65ca8f Fix foreign_currency_id vs currency_id on statement
Fix 13 to 14 migration
2022-01-26 16:33:17 +07:00
Jairo Llopis
33d4223818 [IMP] account_reconciliation_widget: reduce heavy queries count
This specific query is quite expensive, and what's worse, it's also done twice: once to count records and once to get them.

By using a window function, we can get the count and results in one query, thus almost doubling performance in this operation.

Related resources:

- [Explanation](https://stackoverflow.com/a/22353886/1468388).
- [Explain of the 1st SELECT COUNT(*), before the patch](https://explain.dalibo.com/plan/TgL).
- [Explain of the 2nd SELECT, before the patch](https://explain.dalibo.com/plan/Yc9).
- [Explain of the new, unified SELECT, after the patch](https://explain.dalibo.com/plan/9MA).

@Tecnativa TT28595 TT29916 https://github.com/odoo/odoo/pull/73765
2022-01-26 16:33:17 +07:00
Florian da Costa
13f4a8d63d [FIX] prefill partner in reconciliation widget if it has been match by a reconciliation rule 2022-01-26 16:33:17 +07:00
Alexis de Lattre
6000982a57 account_reconciliation_widget: note -> narration on bank statement lines 2022-01-26 16:33:17 +07:00
Alexis de Lattre
d5b4cbe393 account_reconciliation_widget: Use payment_ref for the statement line label 2022-01-26 16:33:17 +07:00
Francisco Ivan Anton Prieto
231ddf9913 [ADD] account_reconciliation_widget: first working alpha 2022-01-26 16:33:17 +07:00
Odoo
509c1573df [ADD] account_reconciliation_widget: Base module code extracted from Odoo 13.0 2022-01-26 16:33:17 +07:00