Skip to content
Health
68/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 10 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 3 models 1 view 0 HTTP endpoints

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
odoo/odoo:
- web
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 IDNameModelTypeStatus
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

New fields (0)

No new fields.

Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • init(self, force=False)
  • unlink(self)
  • write(self, vals)

New fields (1)
  • multicompany_reporting_currency_id Many2one → res.currency
    default=<expr> readonly=True args: 'res.currency'
Public methods (0)

No public methods.

New fields (1)
  • multicompany_reporting_currency Many2one → res.currency
    config_parameter='base_multicompany_reporting_currency.multicompany_reporting_currency' args: 'res.currency'
Public methods (0)

No public methods.

Loading…

Loading…