Repository
OCA/sale-reporting · module folder · Try on Runboat
Module version
1.0.0
Category
Sales
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-reporting
Last tracking update
2026-08-07 09:06:36
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
SilvioC2C, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

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…