Base Multicompany Reporting Currency
base_multicompany_reporting_currency · OCA/sale-reporting
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Description
In Odoo standard, when it comes to reporting in a multicompany and multicurrency environment, it should be done on the invoices. (Cf Fabien Pinckaers tweet: https://twitter.com/fpodoo/status/1511831215673913344)
Nonetheless, some companies do not use the Invoicing or Accounting app in Odoo. For example, when using only CRM and Sales. With this module, we introduce the concept of currency for reporting to be set in General Settings. This way we can reuse the idea behind https://github.com/OCA/sale-workflow/tree/10.0/sale_company_currency, but with a predefined currency.
This module adds:
- a setting in General Settings to set multicompany reporting currency which be applied to all companies
- a system parameter to store the chosen multicompany reporting currency DB-wide
- a mixin model to inherit for handling all basic operations - eg: automatically update the multicompany reporting currency on a model's records when the settings change
Multicompany reporting currency field will be used in other dependent modules to compare amounts in different companies and documents.
NB: This module does not provide any feature for specific apps.
You should install sale_multicompany_reporting_currency from
https://github.com/OCA/sale-reporting or
crm_multicompany_reporting_currency from https://github.com/OCA/crm to
have additional Total (Multicompany Reporting Currency) fields on specific apps.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (4)-
create(self, vals_list)@api.model_create_multi -
init(self, force=False) -
unlink(self) -
write(self, vals)
-
multicompany_reporting_currency_idMany2one → res.currencydefault=<expr>readonly=True args: 'res.currency'
No public methods.
-
multicompany_reporting_currencyMany2one → res.currencyconfig_parameter='base_multicompany_reporting_currency.multicompany_reporting_currency' args: 'res.currency'
No public methods.
Loading…
Loading…