Unrealized currency gain & loss
account_unrealized_currency_gain_loss · OCA/account-closing
-
Security25/25No findings
-
Activity0/25Last human commit 140 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
AccountAccountLine— Class 'AccountAccountLine' still inherits from the old-style `osv.osv` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceAccountAccountLine— Class 'AccountAccountLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceResCompany— Class 'ResCompany' still inherits from the old-style `osv.osv` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceResCompany— Class 'ResCompany' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceWizardCurrencyrevaluation— Class 'WizardCurrencyrevaluation' still inherits from the old-style `osv.osv_memory` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceWizardCurrencyrevaluation— Class 'WizardCurrencyrevaluation' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceres_currency— Class 'res_currency' still inherits from the old-style `osv.osv` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Add a wizard to generate the unrealized currency gain & loss entries. This adjusts accounts' balance of account with a foreign currency.
To configure it, Foreign currency gain & loss account have been added in company parameters.
For UK (Revaluation) : LOSS GAIN
- Revaluation account [x] [x]
- Provision B.S account [ ] [ ]
- Provision P&L account [ ] [ ]
For CH (Provision) : LOSS GAIN
- Revaluation account [ ] [ ]
- Provision B.S account [x] [ ]
- Provision P&L account [x] [ ]
For FR LOSS GAIN
- Revaluation account [x] [x]
- Provision B.S account [x] [ ]
- Provision P&L account [x] [ ]
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
currency_urealized_report_launcher_wizard |
Currency Unrealized | unrealized.report.printer | form | New |
view_account_currency_revaluation_wizard |
Currency revaluation | wizard.currency.revaluation | form | New |
view_account_form_inherit |
account.account.form | account.account | form | Inherits account.view_account_form |
view_company_form_add_currency_gain_loss_accounts |
res.company.form.add.currency.gain.loss.accounts | res.company | form | Inherits base.view_company_form |
view_currency_form_inherit |
res.currency.form | res.currency | form | Inherits base.view_currency_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 0
No models found for this module.