Commit Graph

11 Commits (32b64806e8c21d93b91cda4f3445354db78adc52)

Author SHA1 Message Date
Pedro M. Baeza 687f4ffa56 [FIX] account_reconcile_oca: Don't apply max_amount on intermediate counterparts
Steps to reproduce:

- Have 3 or more items to reconcile. Example: 200, -350, 150.
- One of the intermediate items should be higher than the current
  running balance.
- Select all the items, and click on Action > Reconcile.

Current behavior:

The second item appears with its amount strike-throughed (and putting
the current runnning balance as the amount to reconcile).

Expected behavior:

Only strike-through the amount if the last balance is not matching
the amount.

The solution to this is to only put a maximum amount when checking
the reconciliability of the last line of the counterparts.

TT50888
2024-09-20 21:55:24 +02:00
Enric Tobella 6ea78fdff6 [IMP] account_reconcile_oca: Only fix partner on payment accounts 2024-09-18 09:57:14 +02:00
Enric Tobella 0b69f38cac [IMP] account_reconcile_oca: Fix multi currency computation 2024-06-26 07:03:10 +02:00
Jordi Ballester Alomar 8ce576fc28 [FIX] account_reconcile_oca: improve error messages and allow to reconcile with different partners
Sometimes you may need to reconcile journal items where the partner is different. It's not a good practice
 but may need to be done in cases such as when an invoice and a payment are posted with two partners that
 are in reality the same company, or because you just need to reconcile to clean up.
2024-01-31 15:06:25 +01:00
Enric Tobella f444d1477c [UPD] account_reconcile_oca: Add Dixmit as author 2023-12-27 10:26:10 +01:00
Enric Tobella f545c1e4a0 [IMP] account_reconcile_oca: Add Reconcile action 2023-12-27 10:24:21 +01:00
Enric Tobella c11225c681 [FIX] account_reconcile_oca: Make it work with foreign currency 2023-08-27 18:15:53 +02:00
mle 4fa4e1faa1 [FIX] account_reconcile_oca: account name can be translatable
By default, account_account name is a char field. But if
l10n_multilang is installed, it is translatable, hence
the DB column is now a jsonb.
We must handle both cases in the select query.
2023-06-15 10:48:17 +02:00
Florian da Costa 5aa1881cb7 [FIX] account_reconcile_oca: Fix account_account_reconcile id to avoid big int 2023-04-03 23:23:08 +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
Enric Tobella 6eae4037fd [ADD] account_reconcile_oca 2023-03-29 13:02:06 +02:00