-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][MIG] account_multicurrency_revaluation (good branch) #263
[16.0][MIG] account_multicurrency_revaluation (good branch) #263
Conversation
- 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/
979933b
to
49abaf3
Compare
49abaf3
to
1beb4c3
Compare
b551fe5
to
b6422f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why changing the tests?
It's a partial revert of 084fd02. It has to do with Odoo and how it handles things and reconciliation, I won't try to fully analyze why. |
This PR has the |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at c47ae67. Thanks a lot for contributing to OCA. ❤️ |
is it only me who is getting this error: Traceback (most recent call last): |
Supersedes #250, in order to include last commits from #259.