Commit Graph

7 Commits

Author SHA1 Message Date
Téo Goddet
682ea36f6e Fix foreign_currency_id vs currency_id on statement
Fix 13 to 14 migration
2021-10-30 16:40:47 +02:00
Jairo Llopis
ed559bbb7b [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
2021-07-15 13:02:44 +01:00
Florian da Costa
c8625b411a [FIX] prefill partner in reconciliation widget if it has been match by a reconciliation rule 2021-07-14 15:47:56 +02:00
Alexis de Lattre
81993220da account_reconciliation_widget: note -> narration on bank statement lines 2021-02-04 23:10:29 +01:00
Alexis de Lattre
c564251a02 account_reconciliation_widget: Use payment_ref for the statement line label 2021-02-04 19:01:28 +01:00
Francisco Ivan Anton Prieto
aa43f5881b [ADD] account_reconciliation_widget: first working alpha 2020-12-17 01:21:57 +01:00
Odoo
267f6653d0 [ADD] account_reconciliation_widget: Base module code extracted from Odoo 13.0 2020-12-17 01:21:38 +01:00