Commit Graph

51 Commits (c7c2d6ee1ebb7ab89eeafa3f65dd800df89ab341)

Author SHA1 Message Date
Enric Tobella c7c2d6ee1e [FIX] account_reconcile_oca: Apply matching of partners on reconciliation models 2025-04-11 08:21:38 +02:00
Enric Tobella 14756bdd14 [FIX] account_reconcile_oca: make a domain consider company 2025-04-07 09:25:22 +02:00
Enric Tobella c246fcc586 [IMP] account_reconcile_oca: Allow an option to avoid a function 2025-04-01 11:48:57 +02:00
Víctor Martínez 4abf59038c [FIX] account_reconcile_oca: Avoiding the singleton error related to _get_reconcile_line()
Example use case:
 File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py", line 541, in _compute_reconcile_data_info
    record.reconcile_data_info = record._default_reconcile_data(
  File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py", line 698, in _default_reconcile_data
    reconcile_auxiliary_id, lines = self._get_reconcile_line(
  File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py", line 1164, in _get_reconcile_line
    new_vals = super()._get_reconcile_line(
  File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_reconcile_abstract.py", line 49, in _get_reconcile_line
    original_amount = amount = net_amount = line.debit - line.credit
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1154, in __get__
    record.ensure_one()
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5204, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: account.move.line(208, 211, 212)

TT55221
2025-02-24 13:03:02 +01:00
Enric Tobella 5e6eed71be [IMP] account_reconcile_oca: Allow to select all lines at once 2025-02-11 23:05:41 +01:00
Florian da Costa 976fc5993c [FIX] partner update from reconciliation widget
We cant to avoid to change amounts on accounting entries during the reconciliation process. One of the goal is to avoid a following case :
The statement line is created in a foreign currency journal, later, the rate is updated in Odoo.
During reconciliation process, the partner is set on liquidity line, the accounting entries are synchronized and the balance changes.
2025-02-05 16:46:18 +01:00
Florian da Costa 2296473bb7 [FIX] Synchronise partner from statement line to accounting entries
We need to look at the reconcile_data to find the partner as the manual_partner_id can contain the information of an auxiliary line
2025-02-05 16:26:22 +01:00
Víctor Martínez 32b3b8ed99 [FIX] account_reconcile_oca: Synchronize manual_partner_id with partner_id without onchange or subsequent changes with the _synchronize_to_moves() method.
We do not define partner_id with the value of manual_partner_id to prevent _synchronize_to_moves()
from making changes to the account.move.line leaving unintended values and/or data.

Re-define the value of reconcile_data_info if the _synchronize_to_moves() method has changed
anything on the lines.

Related to https://github.com/OCA/account-reconcile/issues/779

TT52634
2025-02-05 16:26:22 +01:00
OCA-git-bot caf0d9438a Merge PR #777 into 16.0
Signed-off-by alexis-via
2025-02-04 17:49:47 +00:00
Sergio Bustamante 092341be5f [FIX] account_reconcile_oca: Fix currency and amount when using reconciliation models 2025-01-31 13:31:57 +01:00
Florian da Costa ca0b7a4f1e [FIX] Wrong amount currency compute in case of change in liquidity line 2025-01-22 13:02:48 +01:00
Tom de2ae502f2 [FIX] #11339 account_reconcile_oca: KeyError on data 2025-01-14 21:40:31 +01:00
Enric Tobella f0ae2f00ac [FIX] account_reconcile_oca: Update currency_amount 2025-01-03 14:58:23 +01:00
Florian da Costa c1a7bf7249 [FIX] account_reconcile_oca : exchange rate gain/loss currency and amount
If currency amount is not 0, the suspense line will have wrong amount
2025-01-03 13:00:21 +01:00
Florian da Costa 66f5f3a8de [FIX] account_reconcile_oca : max_amount rounding error leading to unwanted currency conversion 2025-01-03 13:00:21 +01:00
Florian da Costa cd165e299d [FIX] account_reconcile_oca : foreign currency reconcile with late currency rate
It is possible that the statement line in foreign currency is created before the rate of the day is updated in Odoo. In this case we need to take the real rate of the statement line to comput the exchange rate
2025-01-03 13:00:21 +01:00
Florian da Costa 3fce9ac661 [FIX] account_reconcile_oca : Fix multi currency management
Fix the case of payment with a foreign currency set on bank statement line

improve tests around multi-currency
2025-01-03 13:00:21 +01:00
Enric Tobella 62d508bb20 [IMP] account_reconcile_oca: Improve multicurrency management.
We will use currency of the line in order to get the suspense and max line value
2025-01-03 13:00:21 +01:00
OCA-git-bot 502f289f0c Merge PR #720 into 16.0
Signed-off-by pedrobaeza
2024-12-19 08:49:37 +00:00
Anjeel Haria 0b19dc332b [IMP] account_reconcile_oca: pass default label(same as the label on the bank statement line) for lines created through reconciliation models if there is no 'Journal Item Label' passed in the reconciliation model 2024-12-19 14:13:47 +05:30
bobrador 7704695a41 [FIX] account_reconcile_oca: Fixed analytic distribution update
This fixes a bug that occurred when both account_reconcile_oca and account_reconcile_model_oca modules were installed. The issue arose when assigning an analytic account and making no further changes, causing the analytic account to not be set correctly. As a result, the reconciliation process failed to create the analytic entries properly. This line: ensures that if the analytic distribution has changed, it will be correctly updated.
2024-12-17 15:17:03 +01:00
Víctor Martínez 113bb628c8 [IMP] account_reconcile_oca: Add auto-reconcile compatibility (Example: Rule to match invoices/bills)
TT52146

[FIX] account_reconcile_oca: Fix test related to match_text_location fields

Related to 8948b31407

TT52146
2024-12-12 08:18:19 +01:00
Víctor Martínez c443b0de2a [ADD] account_reconcile_analytic_tag: New module
TT51885
2024-11-26 16:10:50 +01:00
Florian da Costa 9f33b46fb1 [FIX] account_reconcile_oca : keep partner line case of manual button reconcile 2024-11-18 10:56:11 +01:00
Florian da Costa d952aed10e [16][FIX] account_reconcile_oca : keep aml label when empty on manual write-off reconcile model 2024-11-15 13:19:33 +01:00
emiliesoutiras 3a0d408499 [FIX] fix odoo trace 'Two fields (manual_in_currency_id, manual_in_currency) of account.bank.statement.line() have the same label: Manual In Currency. [Modules: account_reconcile_oca and account_reconcile_oca]' 2024-09-19 17:09:51 +02:00
Enric Tobella 7296eb2ebe [FIX] account_reconcile_oca: Fix wrong display on reconciled moves
If your reconcile an invoice and in the old option, the reconcile widget shows something weird with three lines but we should have only two. The data was right with 2 lines only.
2024-09-09 15:56:50 +02:00
OCA-git-bot 1bf6d9564d Merge PR #668 into 16.0
Signed-off-by pedrobaeza
2024-09-04 15:06:36 +00:00
OCA-git-bot bbceaa6785 Merge PR #665 into 16.0
Signed-off-by etobella
2024-07-24 10:43:58 +00:00
PNurm e2c35bbacf [FIX] account_reconcile_oca: Pass partner parameter correctly to _get_write_off_move_lines_dict 2024-07-18 08:28:21 +02:00
Enric Tobella 67c75bb6ad [IMP] account_reconcile_oca: Compute the exchange rate properly 2024-07-10 10:52:06 +02:00
Enric Tobella 0b69f38cac [IMP] account_reconcile_oca: Fix multi currency computation 2024-06-26 07:03:10 +02:00
JordiMForgeFlow 5349f793a7 [IMP] account_reconcile_oca: reverse reconcile entry when resetting reconciliation in keep mode 2024-06-03 16:56:27 +02:00
Enric Tobella b0444b1319 [IMP] account_reconcile_oca: Allow aggregation for more parameters 2024-05-29 12:29:28 +02:00
Enric Tobella 04fea1e2c4 [IMP] account_reconcile_oca: Allow to define the statement directly 2024-05-29 12:03:12 +02:00
Enric Tobella 84bab61b6f [IMP] account_reconcile_oca: Add missing fields necessary 2024-05-29 12:03:04 +02:00
Enric Tobella 8dc6135948 [FIX] account_reconcile_oca: Use counterparts properly 2024-03-22 10:49:32 +01:00
Enric Tobella 50a8b92a87 [FIX] account_reconcile_oca: Fix foreign currency 2024-03-07 19:33:44 +01:00
Enric Tobella f444d1477c [UPD] account_reconcile_oca: Add Dixmit as author 2023-12-27 10:26:10 +01:00
Andrea Stirpe 167fd083c0 [16.0][IMP] account_reconcile_oca: display partner_name 2023-09-25 15:52:25 +02:00
OCA-git-bot 8b5848969d Merge PR #580 into 16.0
Signed-off-by etobella
2023-09-17 22:37:52 +00:00
Enric Tobella 8b9fe5b3b4 [FIX] account_reconcile_oca: Show manual amount in the right currency 2023-09-06 22:42:03 +02:00
Enric Tobella 2e164c9123 [IMP] account_reconcile_oca: only store info on unreconciled items 2023-09-05 16:12:45 +02:00
Enric Tobella 91e974803f [FIX] account_reconcile_oca: Models where failing on default with a different currency 2023-08-28 16:30:55 +02:00
Enric Tobella c11225c681 [FIX] account_reconcile_oca: Make it work with foreign currency 2023-08-27 18:15:53 +02:00
Enric Tobella db499a7ec1 [IMP] account_reconcile_oca: Include taxes from models
Fixes #576
2023-08-26 20:05:56 +02:00
Enric Tobella 8a01c66f2a [FIX] account_reconcile_oca: Use edit reconcile method in case it is not defined 2023-08-26 19:19:34 +02:00
Florian da Costa c8c028ffcd [IMP] account_reconcile_oca: Take statement line payment ref instead of account move number (name) fot the counterpart account move line 2023-04-04 15:02:57 +02:00
Enric Tobella 8ad989920e [IMP] account_reconcile_oca: Finish creation of module
* refactoring JS in order to add logic
* Improve views
* Minor fixes in Odoo code in order to fix all possible options
2023-03-29 13:08:14 +02:00
Alexis de Lattre 0ea9421d14 [IMP] account_reconcile_oca
* In "reconcile" tab, don't propose the move of the currently processed statement line

* In accounting, only select/search parent partners
2023-03-29 13:08:14 +02:00