Commit Graph

21 Commits

Author SHA1 Message Date
Pedro M. Baeza
1ab3fd48d9 [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 09:10:50 +02:00
Pedro M. Baeza
cbf4a37cbb [FIX] account_reconciliation_widget: Handle blue lines
When coming from previous versions of Odoo, you may have payments
directly done against the bank account. On the reconciliation widget,
they are represented as blue lines.

One possibility is to replace in all these pending entries the bank
account by the outstanding payment/receipt account, but this means to
modify past accounting that may be locked.

So this commit is restoring the ability to reconcile against these blue
lines, although this is a deprecated thing.

Things done:

- Repair the JS widget for informing correctly about the blue lines
  to reconcile.
- When having such lines to reconcile, the temporary statement line is
  removed, and the payment one is linked.
- When reverting reconciliation of the statement lines linked to
  payments, the entry is not removed, just removed the link, and a new
  entry is created for the statement line.

TT43713
2023-06-03 00:25:50 +02:00
Pedro M. Baeza
5c54688faf [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 18:20:44 +02:00
Jon Erik Ceberio
e85fb22bd5 [FIX] account_reconciliation_widget: in case of manual operation with analytic account/tags, create the analytic entry(ies) if the move is posted 2023-02-07 11:57:52 +01:00
Alexis de Lattre
033dedb9b2 [IMP] account_reconciliation_widget: show analytic account on counterpart line 2022-08-11 00:06:39 +02:00
Alexis de Lattre
5875616665 account_reconciliation_widget: ability to edit ref
'ref' of account.move can now be customized in the reconciliation widget
'name' of account.move is displayed for information
2022-08-01 20:13:45 +02:00
Miquel Raïch
942b1992c1 [FIX] account_reconciliation_widget: set statement name to move ref 2022-05-18 13:06:34 +02:00
Pedro M. Baeza
9f85c3dc4f [FIX] account_reconciliation_widget: Don't suggest non posted moves
Fixes #429
2022-04-14 17:08:56 +02:00
oca-git-bot
20199fe0ec [IMP] update dotfiles [ci skip] 2022-03-30 21:45:13 +02:00
Pedro M. Baeza
78e9e3afc6 [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-02-14 17:27:18 +01:00
clementmbr
2017bd523b [FIX] account_reconciliation_widget: better SQL request 2021-12-14 10:29:08 +01:00
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
Francisco Ivan Anton Prieto
f44d05bd8f [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)
2021-04-20 10:40:00 +02:00
Francisco Ivan Anton Prieto
469fbf44f9 [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.
2021-04-19 10:17:31 +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
038f4150d9 [FIX] account_reconciliation_widget: dict refactoring / typo fix 2021-01-19 11:16:00 +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