Commit Graph

13 Commits

Author SHA1 Message Date
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
Francisco Ivan Anton Prieto
446415c936 [14.0][FIX] account_reconciliation_widget: error checking res.partner.bank on account.bank.statement.line
bank_account_id is now partner_bank_id on account.bank.statement.line (inheriting from move)
2022-01-26 16:33:17 +07:00
Francisco Ivan Anton Prieto
d84eb3dbfe [14.0][FIX] account_reconciliation_widget: already posted move issue on reconcile
A new mod in Odoo base code disallows re-post an already posted move. This thing blocks reconciling and this commit fixes it.
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
a8efc5d52d [FIX] account_reconciliation_widget: dict refactoring / typo fix 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