Skip to content

[MIG][18.0] account_multicurrency_revaluation: Migration to 18.0.#362

Open
hieulucky111 wants to merge 87 commits intoOCA:18.0from
komit-consulting:18.0-mig-account_multicurrency_revaluation
Open

[MIG][18.0] account_multicurrency_revaluation: Migration to 18.0.#362
hieulucky111 wants to merge 87 commits intoOCA:18.0from
komit-consulting:18.0-mig-account_multicurrency_revaluation

Conversation

@hieulucky111
Copy link

No description provided.

hbto and others added 30 commits July 17, 2025 15:29
- getting rid of validation because rate will always be at least '1.0' because
of (res.currency)_get_rates query

- create just one Journal Entry per Currency Revaluation run depending the
account type
Currently translated at 98.8% (80 of 81 strings)

Translation: account-closing-12.0/account-closing-12.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-12-0/account-closing-12-0-account_multicurrency_revaluation/es/
Currently translated at 100.0% (81 of 81 strings)

Translation: account-closing-12.0/account-closing-12.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-12-0/account-closing-12-0-account_multicurrency_revaluation/es/
The override of res.currency _get_conversion_rate did return 1.0 / from_currency.rate
when 'revaluation' was True in context.
However, as res.currency.rate is defined per company and the context is only
used for a computation to the company currency, the std method from odoo will also
return 1.0 / from_currency.rate, because to_currency is the company currency.
(https://github.com/odoo/odoo/blob/11.0/odoo/addons/base/res/res_currency.py#L179)
Therefore, we do not need this override.
This line was already commented in v7.0, so we do not need to keep it across all versions
Currently translated at 100.0% (81 of 81 strings)

Translation: account-closing-12.0/account-closing-12.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-12-0/account-closing-12-0-account_multicurrency_revaluation/fr/
Currently translated at 100.0% (80 of 80 strings)

Translation: account-closing-13.0/account-closing-13.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-13-0/account-closing-13-0-account_multicurrency_revaluation/es_AR/
Currently translated at 7.5% (6 of 80 strings)

Translation: account-closing-13.0/account-closing-13.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-13-0/account-closing-13-0-account_multicurrency_revaluation/zh_CN/
Currently translated at 100.0% (82 of 82 strings)

Translation: account-closing-13.0/account-closing-13.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-13-0/account-closing-13-0-account_multicurrency_revaluation/es_AR/
* Odoo 14.0 changes that impact this module are in below commit.
    * odoo/odoo@caeb782
    * `process_reconciliation` has been changed to `reconcile`, and
      `balance` (positive for debit > credit) is used instead of debit+credit;
    * Bank Journal should have suspense account.
Currently translated at 4.8% (4 of 82 strings)

Translation: account-closing-15.0/account-closing-15.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-15-0/account-closing-15-0-account_multicurrency_revaluation/it/
Currently translated at 4.8% (4 of 82 strings)

Translation: account-closing-15.0/account-closing-15.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-15-0/account-closing-15-0-account_multicurrency_revaluation/it/
GuillemCForgeFlow and others added 30 commits July 17, 2025 15:29
Before, the lines were overwriten, so if there were multiple lines for the same account, partner and currency, the last open item was the only one used. Now the amounts are acumulated into one line.
Two-sided relation between lines created and original ones
…nciled items

If the origin line that will be revaluated has partially reconciled items, adjust the values to the real ones.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/
Currently translated at 100.0% (110 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/es/
Co-authored-by: Alexis de Lattre <alexis@via.ecp.fr>
Currently translated at 100.0% (110 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/sv/
Currently translated at 100.0% (110 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/sv/
Currently translated at 99.0% (109 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/it/
Currently translated at 99.0% (109 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/it/
Currently translated at 100.0% (110 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/fa/
Currently translated at 10.0% (11 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/hr/
Currently translated at 26.3% (29 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/hr/
Currently translated at 100.0% (110 of 110 strings)

Translation: account-closing-16.0/account-closing-16.0-account_multicurrency_revaluation
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_multicurrency_revaluation/it/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.