Commit Graph

11 Commits

Author SHA1 Message Date
Pedro M. Baeza
2a1171d9c5 [FIX] account_reconciliation_widget: Avoid unbalanced foreign currency reconciliations
When having a statement line in a foreign currency, each resulting
journal item computes the debit/credit amount from the foreign currency
rate, and then rounding the result to company currency digits.

There's a chance in this process that the journal entry final balance
is not 0 summing the rounded balances in company currency.

For fixing this, there can be several strategies, like creating an
extra journal item for the difference, but I have opted for removing
the difference in the latest counterpart aml, so no extra noise and
no need of account decision algorithm for this extra move.

As currency amounts are correct and are the ones used in reconciliation,
there won't be any problem adjusting this amount.

TT45568
2023-10-21 18:44:12 +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
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
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
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
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