From 23a091b965ad63f8973b6340e69c94cecfab47ff Mon Sep 17 00:00:00 2001 From: Maksym Yankin Date: Thu, 21 Apr 2022 15:15:22 +0300 Subject: [PATCH 01/13] [15.0] add base_multicompany_reporting_currency --- .../README.rst | 76 ++++ .../__init__.py | 1 + .../__manifest__.py | 17 + ...efault_multicompany_reporting_currency.xml | 8 + .../base_multicompany_reporting_currency.pot | 26 ++ .../models/__init__.py | 1 + .../models/res_config_settings.py | 13 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 9 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 428 ++++++++++++++++++ .../views/res_config_settings_views.xml | 30 ++ 12 files changed, 610 insertions(+) create mode 100644 base_multicompany_reporting_currency/README.rst create mode 100644 base_multicompany_reporting_currency/__init__.py create mode 100644 base_multicompany_reporting_currency/__manifest__.py create mode 100644 base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml create mode 100644 base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot create mode 100644 base_multicompany_reporting_currency/models/__init__.py create mode 100644 base_multicompany_reporting_currency/models/res_config_settings.py create mode 100644 base_multicompany_reporting_currency/readme/CONTRIBUTORS.rst create mode 100644 base_multicompany_reporting_currency/readme/DESCRIPTION.rst create mode 100644 base_multicompany_reporting_currency/static/description/icon.png create mode 100644 base_multicompany_reporting_currency/static/description/index.html create mode 100644 base_multicompany_reporting_currency/views/res_config_settings_views.xml diff --git a/base_multicompany_reporting_currency/README.rst b/base_multicompany_reporting_currency/README.rst new file mode 100644 index 000000000..de6b10a84 --- /dev/null +++ b/base_multicompany_reporting_currency/README.rst @@ -0,0 +1,76 @@ +==================================== +Base Multicompany Reporting Currency +==================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github + :target: https://github.com/OCA/sale-reporting/tree/15.0/base_multicompany_reporting_currency + :alt: OCA/sale-reporting +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-reporting-15-0/sale-reporting-15-0-base_multicompany_reporting_currency + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/134/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This Module adds a setting in General Settings to set multicompany reporting currency which be applied to all companies. +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 itself. +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) field. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Camptocamp SA + +Contributors +~~~~~~~~~~~~ + +* Maksym Yankin + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/sale-reporting `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_multicompany_reporting_currency/__init__.py b/base_multicompany_reporting_currency/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/base_multicompany_reporting_currency/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_multicompany_reporting_currency/__manifest__.py b/base_multicompany_reporting_currency/__manifest__.py new file mode 100644 index 000000000..60c0320bd --- /dev/null +++ b/base_multicompany_reporting_currency/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Base Multicompany Reporting Currency", + "summary": "Adds the possibility to specify Multicompany Reporting Currency", + "version": "15.0.1.0.0", + "category": "Sales", + "author": "Camptocamp SA, Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": ["base_setup"], + "website": "https://github.com/OCA/sale-reporting", + "data": [ + "data/default_multicompany_reporting_currency.xml", + "views/res_config_settings_views.xml", + ], + "installable": True, +} diff --git a/base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml b/base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml new file mode 100644 index 000000000..b3214c27f --- /dev/null +++ b/base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml @@ -0,0 +1,8 @@ + + + base_multicompany_reporting_currency.multicompany_reporting_currency + + + diff --git a/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot b/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot new file mode 100644 index 000000000..ee2f5c24e --- /dev/null +++ b/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_multicompany_reporting_currency +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-04-21 14:14+0000\n" +"PO-Revision-Date: 2022-04-21 14:14+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: base_multicompany_reporting_currency +#: model:ir.model,name:base_multicompany_reporting_currency.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: base_multicompany_reporting_currency +#: model_terms:ir.ui.view,arch_db:base_multicompany_reporting_currency.res_config_settings_view_form +msgid "Set Multicompany Reporting Currency" +msgstr "" diff --git a/base_multicompany_reporting_currency/models/__init__.py b/base_multicompany_reporting_currency/models/__init__.py new file mode 100644 index 000000000..0deb68c46 --- /dev/null +++ b/base_multicompany_reporting_currency/models/__init__.py @@ -0,0 +1 @@ +from . import res_config_settings diff --git a/base_multicompany_reporting_currency/models/res_config_settings.py b/base_multicompany_reporting_currency/models/res_config_settings.py new file mode 100644 index 000000000..e57b7b5e3 --- /dev/null +++ b/base_multicompany_reporting_currency/models/res_config_settings.py @@ -0,0 +1,13 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + multicompany_reporting_currency = fields.Many2one( + "res.currency", + config_parameter="base_multicompany_reporting_currency.multicompany_reporting_currency", + ) diff --git a/base_multicompany_reporting_currency/readme/CONTRIBUTORS.rst b/base_multicompany_reporting_currency/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..d537187fe --- /dev/null +++ b/base_multicompany_reporting_currency/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Maksym Yankin diff --git a/base_multicompany_reporting_currency/readme/DESCRIPTION.rst b/base_multicompany_reporting_currency/readme/DESCRIPTION.rst new file mode 100644 index 000000000..7c9320a9a --- /dev/null +++ b/base_multicompany_reporting_currency/readme/DESCRIPTION.rst @@ -0,0 +1,9 @@ +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. +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 itself. +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) field. diff --git a/base_multicompany_reporting_currency/static/description/icon.png b/base_multicompany_reporting_currency/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}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xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/base_multicompany_reporting_currency/static/description/index.html b/base_multicompany_reporting_currency/static/description/index.html new file mode 100644 index 000000000..d701c64b4 --- /dev/null +++ b/base_multicompany_reporting_currency/static/description/index.html @@ -0,0 +1,428 @@ + + + + + + +Multicompany Reporting Currency + + + +
+

Multicompany Reporting Currency

+ + +

Beta License: AGPL-3 OCA/sale-reporting Translate me on Weblate Try me on Runbot

+

This Module adds a setting in General Settings to set multicompany reporting currency which be applied to all companies.

+

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 itself.

+

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) field.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp SA
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/sale-reporting project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/base_multicompany_reporting_currency/views/res_config_settings_views.xml b/base_multicompany_reporting_currency/views/res_config_settings_views.xml new file mode 100644 index 000000000..f1e55af85 --- /dev/null +++ b/base_multicompany_reporting_currency/views/res_config_settings_views.xml @@ -0,0 +1,30 @@ + + + + res.config.settings + + + +
+
+
+
+
+
+ +
From 53f2e2e35a46016a532160ca40a1251095c760f4 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 18 May 2022 20:16:31 +0000 Subject: [PATCH 02/13] [UPD] Update base_multicompany_reporting_currency.pot --- .../i18n/base_multicompany_reporting_currency.pot | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot b/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot index ee2f5c24e..8bec109fe 100644 --- a/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot +++ b/base_multicompany_reporting_currency/i18n/base_multicompany_reporting_currency.pot @@ -4,10 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0+e\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-04-21 14:14+0000\n" -"PO-Revision-Date: 2022-04-21 14:14+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -20,6 +18,11 @@ msgstr "" msgid "Config Settings" msgstr "" +#. module: base_multicompany_reporting_currency +#: model:ir.model.fields,field_description:base_multicompany_reporting_currency.field_res_config_settings__multicompany_reporting_currency +msgid "Multicompany Reporting Currency" +msgstr "" + #. module: base_multicompany_reporting_currency #: model_terms:ir.ui.view,arch_db:base_multicompany_reporting_currency.res_config_settings_view_form msgid "Set Multicompany Reporting Currency" From 030d240c46df8dfb83645eef6eb22fa2baa833f4 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 18 May 2022 20:19:17 +0000 Subject: [PATCH 03/13] [UPD] README.rst --- .../README.rst | 11 ++++++-- .../static/description/index.html | 28 +++++++++---------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/base_multicompany_reporting_currency/README.rst b/base_multicompany_reporting_currency/README.rst index de6b10a84..52baafbbb 100644 --- a/base_multicompany_reporting_currency/README.rst +++ b/base_multicompany_reporting_currency/README.rst @@ -13,22 +13,27 @@ Base Multicompany Reporting Currency .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--reporting-lightgray.png?logo=github :target: https://github.com/OCA/sale-reporting/tree/15.0/base_multicompany_reporting_currency :alt: OCA/sale-reporting .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/sale-reporting-15-0/sale-reporting-15-0-base_multicompany_reporting_currency :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/134/15.0 + :target: https://runbot.odoo-community.org/runbot/148/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| +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. 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 itself. -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) field. +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) field. **Table of contents** diff --git a/base_multicompany_reporting_currency/static/description/index.html b/base_multicompany_reporting_currency/static/description/index.html index d701c64b4..940c0c722 100644 --- a/base_multicompany_reporting_currency/static/description/index.html +++ b/base_multicompany_reporting_currency/static/description/index.html @@ -4,7 +4,7 @@ -Multicompany Reporting Currency +Base Multicompany Reporting Currency -
-

Multicompany Reporting Currency

+
+

Base Multicompany Reporting Currency

-

Beta License: AGPL-3 OCA/sale-reporting Translate me on Weblate Try me on Runbot

-

This Module adds a setting in General Settings to set multicompany reporting currency which be applied to all companies.

-

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 itself.

-

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) field.

+

Beta License: AGPL-3 OCA/sale-reporting Translate me on Weblate Try me on Runbot

+

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. +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 itself. +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) field.

Table of contents

    @@ -403,13 +407,7 @@

    Authors

    Contributors

    From f30ad04067fd66392cddea00a2109a99efd825e0 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 18 May 2022 20:19:17 +0000 Subject: [PATCH 04/13] base_multicompany_reporting_currency 15.0.1.0.1 --- base_multicompany_reporting_currency/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_multicompany_reporting_currency/__manifest__.py b/base_multicompany_reporting_currency/__manifest__.py index 60c0320bd..8c475aa31 100644 --- a/base_multicompany_reporting_currency/__manifest__.py +++ b/base_multicompany_reporting_currency/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Base Multicompany Reporting Currency", "summary": "Adds the possibility to specify Multicompany Reporting Currency", - "version": "15.0.1.0.0", + "version": "15.0.1.0.1", "category": "Sales", "author": "Camptocamp SA, Odoo Community Association (OCA)", "license": "AGPL-3", From 7a6baeeb548881b9b4480a2ae3714fe5f1765f56 Mon Sep 17 00:00:00 2001 From: jabelchi Date: Fri, 3 Jun 2022 07:43:40 +0000 Subject: [PATCH 05/13] Added translation using Weblate (Catalan) --- .../i18n/ca.po | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 base_multicompany_reporting_currency/i18n/ca.po diff --git a/base_multicompany_reporting_currency/i18n/ca.po b/base_multicompany_reporting_currency/i18n/ca.po new file mode 100644 index 000000000..f6d3ca1de --- /dev/null +++ b/base_multicompany_reporting_currency/i18n/ca.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_multicompany_reporting_currency +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-06-03 10:05+0000\n" +"Last-Translator: jabelchi \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: base_multicompany_reporting_currency +#: model:ir.model,name:base_multicompany_reporting_currency.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustos" + +#. module: base_multicompany_reporting_currency +#: model:ir.model.fields,field_description:base_multicompany_reporting_currency.field_res_config_settings__multicompany_reporting_currency +msgid "Multicompany Reporting Currency" +msgstr "Moneda informes multicompanyia" + +#. module: base_multicompany_reporting_currency +#: model_terms:ir.ui.view,arch_db:base_multicompany_reporting_currency.res_config_settings_view_form +msgid "Set Multicompany Reporting Currency" +msgstr "Estableix la moneda dels informes multicompanyia" From 5d191836900f1f29e0170e9dcac2f04055cb1d88 Mon Sep 17 00:00:00 2001 From: eccit-quim Date: Fri, 23 Jun 2023 11:12:00 +0000 Subject: [PATCH 06/13] Translated using Weblate (Catalan) Currently translated at 100.0% (3 of 3 strings) Translation: sale-reporting-15.0/sale-reporting-15.0-base_multicompany_reporting_currency Translate-URL: https://translation.odoo-community.org/projects/sale-reporting-15-0/sale-reporting-15-0-base_multicompany_reporting_currency/ca/ --- base_multicompany_reporting_currency/i18n/ca.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base_multicompany_reporting_currency/i18n/ca.po b/base_multicompany_reporting_currency/i18n/ca.po index f6d3ca1de..5eadf3f30 100644 --- a/base_multicompany_reporting_currency/i18n/ca.po +++ b/base_multicompany_reporting_currency/i18n/ca.po @@ -6,20 +6,20 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2022-06-03 10:05+0000\n" -"Last-Translator: jabelchi \n" +"PO-Revision-Date: 2023-06-23 14:08+0000\n" +"Last-Translator: eccit-quim \n" "Language-Team: none\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.3.2\n" +"X-Generator: Weblate 4.17\n" #. module: base_multicompany_reporting_currency #: model:ir.model,name:base_multicompany_reporting_currency.model_res_config_settings msgid "Config Settings" -msgstr "Ajustos" +msgstr "Paràmetres de configuració" #. module: base_multicompany_reporting_currency #: model:ir.model.fields,field_description:base_multicompany_reporting_currency.field_res_config_settings__multicompany_reporting_currency From 8ab671054778b54793c500ad6f923c21d3d8c544 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 3 Sep 2023 16:11:48 +0000 Subject: [PATCH 07/13] [UPD] README.rst --- .../README.rst | 15 ++++---- .../static/description/index.html | 34 ++++++++++--------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/base_multicompany_reporting_currency/README.rst b/base_multicompany_reporting_currency/README.rst index 52baafbbb..0cf4de7e8 100644 --- a/base_multicompany_reporting_currency/README.rst +++ b/base_multicompany_reporting_currency/README.rst @@ -2,10 +2,13 @@ Base Multicompany Reporting Currency ==================================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:168be8701487eb8bee1c9e0b6daab1184fa3236a479415e6fe29be62a94515f3 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Base Multicompany Reporting Currency .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/sale-reporting-15-0/sale-reporting-15-0-base_multicompany_reporting_currency :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/148/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/sale-reporting&target_branch=15.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| 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. @@ -45,7 +48,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed +If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/base_multicompany_reporting_currency/static/description/index.html b/base_multicompany_reporting_currency/static/description/index.html index 940c0c722..6a126db0d 100644 --- a/base_multicompany_reporting_currency/static/description/index.html +++ b/base_multicompany_reporting_currency/static/description/index.html @@ -1,20 +1,20 @@ - + - + Base Multicompany Reporting Currency -
    -

    Base Multicompany Reporting Currency

    +
    + + +Odoo Community Association + +
    +

    Base Multicompany Reporting Currency

    -

    Beta License: AGPL-3 OCA/sale-reporting Translate me on Weblate Try me on Runboat

    -

    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. -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 itself. -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) field.

    +

    Beta License: AGPL-3 OCA/sale-reporting Translate me on Weblate Try me on Runboat

    +

    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. 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 itself. 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) field.

    Table of contents

      @@ -391,23 +406,23 @@

      Base Multicompany Reporting Currency

    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • Camptocamp SA
    -

    Contributors

    +

    Contributors

    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/sale-reporting project on GitHub.

    +

    This module is part of the OCA/sale-reporting project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    +
    diff --git a/base_multicompany_reporting_currency/views/res_config_settings_views.xml b/base_multicompany_reporting_currency/views/res_config_settings_views.xml index f1e55af85..939734be4 100644 --- a/base_multicompany_reporting_currency/views/res_config_settings_views.xml +++ b/base_multicompany_reporting_currency/views/res_config_settings_views.xml @@ -26,5 +26,4 @@ - From 655ed01be4f86bb67268598610b379d3adbb2c6a Mon Sep 17 00:00:00 2001 From: SilvioC2C Date: Tue, 13 Jan 2026 11:45:22 +0100 Subject: [PATCH 13/13] [MIG] base_multicompany_reporting_currency: Migration to 19.0 --- .../README.rst | 35 ++++-- .../__manifest__.py | 14 ++- ...efault_multicompany_reporting_currency.xml | 8 -- .../models/__init__.py | 2 + .../models/ir_config_parameter.py | 54 ++++++++ .../multicompany_reporting_currency_mixin.py | 116 ++++++++++++++++++ .../readme/CONTRIBUTORS.md | 4 +- .../readme/DESCRIPTION.md | 32 +++-- .../static/description/index.html | 35 ++++-- .../tests/__init__.py | 1 + .../tests/common.py | 53 ++++++++ .../tests/fake_models.py | 11 ++ ...st_base_multicompany_reporting_currency.py | 82 +++++++++++++ .../views/res_config_settings.xml | 53 ++++++++ .../views/res_config_settings_views.xml | 29 ----- 15 files changed, 452 insertions(+), 77 deletions(-) delete mode 100644 base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml create mode 100644 base_multicompany_reporting_currency/models/ir_config_parameter.py create mode 100644 base_multicompany_reporting_currency/models/multicompany_reporting_currency_mixin.py create mode 100644 base_multicompany_reporting_currency/tests/__init__.py create mode 100644 base_multicompany_reporting_currency/tests/common.py create mode 100644 base_multicompany_reporting_currency/tests/fake_models.py create mode 100644 base_multicompany_reporting_currency/tests/test_base_multicompany_reporting_currency.py create mode 100644 base_multicompany_reporting_currency/views/res_config_settings.xml delete mode 100644 base_multicompany_reporting_currency/views/res_config_settings_views.xml diff --git a/base_multicompany_reporting_currency/README.rst b/base_multicompany_reporting_currency/README.rst index 899809401..8cee24fcd 100644 --- a/base_multicompany_reporting_currency/README.rst +++ b/base_multicompany_reporting_currency/README.rst @@ -35,6 +35,7 @@ Base Multicompany Reporting Currency 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 @@ -42,15 +43,25 @@ 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. 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 itself. You should install -sale_multicompany_reporting_currency from +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) field. +``crm_multicompany_reporting_currency`` from https://github.com/OCA/crm +to have additional Total (Multicompany Reporting Currency) fields on +specific apps. **Table of contents** @@ -73,12 +84,16 @@ Credits Authors ------- -* Camptocamp SA +* Camptocamp Contributors ------------ -- Maksym Yankin +- [Camptocamp SA](https://www.camptocamp.com): + + - Maksym Yankin + - Silvio Gregorini + - [APSL-Nagarro](https://apsl.tech): - Antoni Marroig diff --git a/base_multicompany_reporting_currency/__manifest__.py b/base_multicompany_reporting_currency/__manifest__.py index 458667a7e..2d99984a2 100644 --- a/base_multicompany_reporting_currency/__manifest__.py +++ b/base_multicompany_reporting_currency/__manifest__.py @@ -1,17 +1,21 @@ # Copyright 2022 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + { "name": "Base Multicompany Reporting Currency", "summary": "Adds the possibility to specify Multicompany Reporting Currency", - "version": "16.0.1.0.0", + "version": "19.0.1.0.0", "category": "Sales", - "author": "Camptocamp SA, Odoo Community Association (OCA)", + "author": "Camptocamp, Odoo Community Association (OCA)", "license": "AGPL-3", - "depends": ["base_setup"], + "depends": [ + # Odoo + "base_setup", + ], "website": "https://github.com/OCA/sale-reporting", "data": [ - "data/default_multicompany_reporting_currency.xml", - "views/res_config_settings_views.xml", + # Views + "views/res_config_settings.xml", ], "installable": True, } diff --git a/base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml b/base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml deleted file mode 100644 index b3214c27f..000000000 --- a/base_multicompany_reporting_currency/data/default_multicompany_reporting_currency.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - base_multicompany_reporting_currency.multicompany_reporting_currency - - - diff --git a/base_multicompany_reporting_currency/models/__init__.py b/base_multicompany_reporting_currency/models/__init__.py index 0deb68c46..768dea92b 100644 --- a/base_multicompany_reporting_currency/models/__init__.py +++ b/base_multicompany_reporting_currency/models/__init__.py @@ -1 +1,3 @@ +from . import ir_config_parameter +from . import multicompany_reporting_currency_mixin from . import res_config_settings diff --git a/base_multicompany_reporting_currency/models/ir_config_parameter.py b/base_multicompany_reporting_currency/models/ir_config_parameter.py new file mode 100644 index 000000000..b60427d94 --- /dev/null +++ b/base_multicompany_reporting_currency/models/ir_config_parameter.py @@ -0,0 +1,54 @@ +# Copyright 2026 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import api, models + + +class IrConfigParameter(models.Model): + _inherit = "ir.config_parameter" + + @api.model + def _get_multicompany_reporting_currency_key(self) -> str: + return "base_multicompany_reporting_currency.multicompany_reporting_currency" + + def init(self, force=False): + # OVERRIDE: if missing, create the system parameter for key + # ``base_multicompany_reporting_currency.multicompany_reporting_currency`` + # (will be EUR by default) + res = super().init(force=force) + key = self._get_multicompany_reporting_currency_key() + if not self.search([("key", "=", key)]): + self.set_param(key, str(self.env.ref("base.EUR").id)) + return res + + @api.model_create_multi + def create(self, vals_list): + # OVERRIDE: recompute the multicompany reporting currency if needed + params = super().create(vals_list) + if params._check_multicompany_reporting_currency_needs_update(): + self._update_multicompany_reporting_currency() + return params + + def write(self, vals): + # OVERRIDE: recompute the multicompany reporting currency if needed + res = super().write(vals) + needs_update = self._check_multicompany_reporting_currency_needs_update() + if {"key", "value"}.intersection(vals) and needs_update: + self._update_multicompany_reporting_currency() + return res + + def unlink(self): + # OVERRIDE: recompute the multicompany reporting currency if needed + needs_update = self._check_multicompany_reporting_currency_needs_update() + res = super().unlink() + if needs_update: + self._update_multicompany_reporting_currency() + return res + + def _check_multicompany_reporting_currency_needs_update(self) -> bool: + return self._get_multicompany_reporting_currency_key() in self.mapped("key") + + @api.model + def _update_multicompany_reporting_currency(self): + mixin = self.env["multicompany.reporting.currency.mixin"] + mixin._update_multicompany_reporting_currency() diff --git a/base_multicompany_reporting_currency/models/multicompany_reporting_currency_mixin.py b/base_multicompany_reporting_currency/models/multicompany_reporting_currency_mixin.py new file mode 100644 index 000000000..84e5dc4d6 --- /dev/null +++ b/base_multicompany_reporting_currency/models/multicompany_reporting_currency_mixin.py @@ -0,0 +1,116 @@ +# Copyright 2026 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from logging import getLogger + +from odoo import api, fields, models +from odoo.orm.domains import Domain +from odoo.tools.misc import OrderedSet + +_logger = getLogger(__name__) + + +class MulticompanyReportingCurrencyMixin(models.AbstractModel): + """Abstract mixin for models that use multicompany reporting currency""" + + _name = "multicompany.reporting.currency.mixin" + _description = "Multicompany Reporting Currency Mixin" + + multicompany_reporting_currency_id = fields.Many2one( + "res.currency", + default=lambda self: self._get_default_multicompany_reporting_currency_id(), + readonly=True, + ) + + @api.model + def _get_default_multicompany_reporting_currency_id(self): + # Default to the sys param multicompany reporting currency value + return self._get_multicompany_reporting_currency_from_sys_param() + + @api.model + def _get_multicompany_reporting_currency_from_sys_param(self): + """Retrieves the currently configured multicompany reporting currency + + Hook method, can be overridden by inheriting models + """ + currency = self.env["res.currency"] + + # We try to retrieve the multicompany reporting currency from the system params, + # but ``get_param(key)`` will return either ``None`` or a ``str`` object; since + # we cannot be 100% sure we'll be able to convert it to a ``res.currency`` + # record ID, we use the user's environmental company currency as fallback + key = "base_multicompany_reporting_currency.multicompany_reporting_currency" + if value := self.env["ir.config_parameter"].sudo().get_param(key, default=""): + try: + currency = currency.browse(int(value)).exists() + except ValueError: # pylint: disable=except-pass + pass + if not currency: + currency = self.env.company.currency_id + _logger.warning( + "Could not get multicompany reporting currency from system" + f" parameters, using user's company currency '{currency.name}'" + ) + return currency + + @api.model + def _update_multicompany_reporting_currency(self): + """Updates the multicompany reporting currency on all inheriting models""" + for model in self._get_multicompany_reporting_currency_inheriting_models(): + # We use the sudo-ed model because this is an automation, and we + # cannot predict whether the current user has read/write access + # on all inheriting models + model = model.sudo() + ctx = model._get_multicompany_reporting_currency_ctx_for_records_update() + model = model.with_context(ctx) # pylint: disable=context-overridden + dom = model._get_multicompany_reporting_currency_domain_for_records_update() + recs = model.search(dom) + vals = model._get_multicompany_reporting_currency_vals_for_records_update() + if recs and vals: + recs.write(vals) + + @api.model + def _get_multicompany_reporting_currency_inheriting_models(self): + """Retrieves an ordered set of models that inherit from this mixin + + Hook method, can be overridden by inheriting models + """ + inheriting_models: OrderedSet[models.BaseModel] = OrderedSet() + + def _add_models_recursively(model: models.BaseModel): + for model_name in model._inherit_children: + model = self.env.get(model_name) + if model is not None and model not in inheriting_models: + inheriting_models.add(model) + _add_models_recursively(model) + + # NB: ``multicompany.reporting.currency.mixin`` is excluded from the end result + _add_models_recursively(self.env["multicompany.reporting.currency.mixin"]) + return inheriting_models + + @api.model + def _get_multicompany_reporting_currency_ctx_for_records_update(self): + """Prepares a basic context to search/update records + + Hook method, can be overridden by inheriting models + """ + # By default, search and update archived records too + return dict(self.env.context, active_test=False) + + @api.model + def _get_multicompany_reporting_currency_domain_for_records_update(self): + """Prepares a basic domain to search records to update + + Hook method, can be overridden by inheriting models + """ + currency = self._get_multicompany_reporting_currency_from_sys_param() + return Domain([("multicompany_reporting_currency_id", "!=", currency.id)]) + + @api.model + def _get_multicompany_reporting_currency_vals_for_records_update(self): + """Prepares basic record values for the update + + Hook method, can be overridden by inheriting models + """ + currency = self._get_multicompany_reporting_currency_from_sys_param() + return {"multicompany_reporting_currency_id": currency.id} diff --git a/base_multicompany_reporting_currency/readme/CONTRIBUTORS.md b/base_multicompany_reporting_currency/readme/CONTRIBUTORS.md index 756b96cee..efbb9292b 100644 --- a/base_multicompany_reporting_currency/readme/CONTRIBUTORS.md +++ b/base_multicompany_reporting_currency/readme/CONTRIBUTORS.md @@ -1,3 +1,5 @@ -- Maksym Yankin \<\> +- \[Camptocamp SA\](): + - Maksym Yankin \<\> + - Silvio Gregorini \<\> - \[APSL-Nagarro\](): - Antoni Marroig \<\> diff --git a/base_multicompany_reporting_currency/readme/DESCRIPTION.md b/base_multicompany_reporting_currency/readme/DESCRIPTION.md index 8b5939062..427003a9f 100644 --- a/base_multicompany_reporting_currency/readme/DESCRIPTION.md +++ b/base_multicompany_reporting_currency/readme/DESCRIPTION.md @@ -1,20 +1,26 @@ 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: -) 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 +multicurrency environment, it should be done on the invoices. +(Cf Fabien Pinckaers tweet: ) + +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 , but with a predefined currency. -This Module adds a setting in General Settings to set multicompany -reporting currency which be applied to all companies. 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 itself. You should install -sale_multicompany_reporting_currency from +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 or -crm_multicompany_reporting_currency from to -have additional Total (Multicompany Reporting Currency) field. +``crm_multicompany_reporting_currency`` from to +have additional Total (Multicompany Reporting Currency) fields on specific apps. diff --git a/base_multicompany_reporting_currency/static/description/index.html b/base_multicompany_reporting_currency/static/description/index.html index a55088ecf..e9baf8b72 100644 --- a/base_multicompany_reporting_currency/static/description/index.html +++ b/base_multicompany_reporting_currency/static/description/index.html @@ -377,22 +377,31 @@

    Base Multicompany Reporting Currency

    Beta License: AGPL-3 OCA/sale-reporting Translate me on Weblate Try me on Runboat

    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 +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. 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 itself. You should install -sale_multicompany_reporting_currency from +

    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) field.

    +crm_multicompany_reporting_currency from https://github.com/OCA/crm +to have additional Total (Multicompany Reporting Currency) fields on +specific apps.

    Table of contents

      @@ -418,13 +427,17 @@

      Credits

      Authors

        -
      • Camptocamp SA
      • +
      • Camptocamp

      Contributors

        +
      • [Camptocamp SA](https://www.camptocamp.com): +
      • [APSL-Nagarro](https://apsl.tech): diff --git a/base_multicompany_reporting_currency/tests/__init__.py b/base_multicompany_reporting_currency/tests/__init__.py new file mode 100644 index 000000000..81cfd7957 --- /dev/null +++ b/base_multicompany_reporting_currency/tests/__init__.py @@ -0,0 +1 @@ +from . import test_base_multicompany_reporting_currency diff --git a/base_multicompany_reporting_currency/tests/common.py b/base_multicompany_reporting_currency/tests/common.py new file mode 100644 index 000000000..a6b615169 --- /dev/null +++ b/base_multicompany_reporting_currency/tests/common.py @@ -0,0 +1,53 @@ +# Copyright 2026 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo.orm.model_classes import add_to_registry +from odoo.tools.misc import mute_logger + +from odoo.addons.base.tests.common import BaseCommon + + +class Common(BaseCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + + # Setup ``fake.model`` for testing + from .fake_models import FakeModel + + add_to_registry(cls.registry, FakeModel) + cls.registry._setup_models__(cls.env.cr, ["fake.model"]) + cls.registry.init_models(cls.env.cr, ["fake.model"], {"models_to_check": 1}) + + @classmethod + def tearDownClass(cls): + cls.registry.__delitem__("fake.model") + super().tearDownClass() + + @mute_logger( + "odoo.addons.base_multicompany_reporting_currency.models.multicompany_reporting_currency_mixin" + ) + def _set_multicompany_reporting_currency_param(self, currency_id): + self.env["ir.config_parameter"].sudo().set_param( + "base_multicompany_reporting_currency.multicompany_reporting_currency", + currency_id, + ) + + def _test_multicompany_reporting_currency(self, currency_id, valid=True): + self._set_multicompany_reporting_currency_param(currency_id) + mcrc_mixin = self.env["multicompany.reporting.currency.mixin"] + getter = mcrc_mixin._get_multicompany_reporting_currency_from_sys_param + if valid: + expected_currency = self.env["res.currency"].browse(currency_id) + with self.assertNoLogs(level="WARNING"): + multicompany_reporting_currency = getter() + else: + expected_currency = self.env.company.currency_id + with self.assertLogs(level="WARNING") as log_catcher: + multicompany_reporting_currency = getter() + self.assertEqual( + log_catcher.records[0].message, + "Could not get multicompany reporting currency from system parameters," + f" using user's company currency '{self.env.company.currency_id.name}'", + ) + self.assertEqual(multicompany_reporting_currency, expected_currency) diff --git a/base_multicompany_reporting_currency/tests/fake_models.py b/base_multicompany_reporting_currency/tests/fake_models.py new file mode 100644 index 000000000..9ed4f9b36 --- /dev/null +++ b/base_multicompany_reporting_currency/tests/fake_models.py @@ -0,0 +1,11 @@ +# Copyright 2026 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import models + + +# For testing ``multicompany.reporting.currency.mixin`` features on new models +class FakeModel(models.Model): + _name = "fake.model" + _description = "Fake Model" + _inherit = "multicompany.reporting.currency.mixin" diff --git a/base_multicompany_reporting_currency/tests/test_base_multicompany_reporting_currency.py b/base_multicompany_reporting_currency/tests/test_base_multicompany_reporting_currency.py new file mode 100644 index 000000000..7fc41b5db --- /dev/null +++ b/base_multicompany_reporting_currency/tests/test_base_multicompany_reporting_currency.py @@ -0,0 +1,82 @@ +# Copyright 2026 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + + +from .common import Common + + +class TestBaseMulticompanyReportingCurrency(Common): + def test_00_multicompany_reporting_currency(self): + """Checks the correct multicompany reporting currency is retrieved""" + ref = self.env.ref + self._test_multicompany_reporting_currency(ref("base.USD").id, valid=True) + self._test_multicompany_reporting_currency(ref("base.CHF").id, valid=True) + self._test_multicompany_reporting_currency(ref("base.EUR").id, valid=True) + + def test_01_multicompany_reporting_currency_invalid(self): + """Checks a warning is issued if the sys param is not a valid currency ID""" + # Empty string (trimmed) + self._test_multicompany_reporting_currency("", valid=False) + # Empty string (blanks only) + self._test_multicompany_reporting_currency(" ", valid=False) + # Cannot convert to ``int`` + self._test_multicompany_reporting_currency("test", valid=False) + # Not a real ID + self._test_multicompany_reporting_currency(-1, valid=False) + # No value (this will end up deleting the sys param itself) + self._test_multicompany_reporting_currency(None, valid=False) + + def test_02_multicompany_reporting_currency_inheriting_model(self): + """Checks the currency is updated on models inheriting from mixin""" + eur = self.env.ref("base.EUR") + usd = self.env.ref("base.USD") + env_curr = self.env.company.currency_id + + # TEST INHERITING MODELS ARE RETRIEVED CORRECTLY + # The result must be the same even if the method is called from inheriting + # models + mcrc_mixin = self.env["multicompany.reporting.currency.mixin"] + fake_model = self.env["fake.model"] + self.assertIn( + fake_model, + mcrc_mixin._get_multicompany_reporting_currency_inheriting_models(), + ) + self.assertIn( + fake_model, + fake_model._get_multicompany_reporting_currency_inheriting_models(), + ) + + # TEST MIXIN DEFAULT VALUE + # Set the multicompany reporting currency to EUR, then create 5 records per + # model => all have EUR as multicompany reporting currency + self._set_multicompany_reporting_currency_param(eur.id) + fake_recs = fake_model.create([{}] * 5) + self.assertRecordValues( + fake_recs, + [{"multicompany_reporting_currency_id": eur.id}] * 5, + ) + + # TEST SYS PARAM UPDATE IS REFLECTED ON RECORDS + # Set the multicompany reporting currency to USD => all records will now have + # USD as multicompany reporting currency + self._set_multicompany_reporting_currency_param(usd.id) + self.assertRecordValues( + fake_recs, + [{"multicompany_reporting_currency_id": usd.id}] * 5, + ) + + # TEST SYS PARAM DELETION IS REFLECTED ON RECORDS + # Delete the sys param => all records will now have the user's currency + self._set_multicompany_reporting_currency_param(None) + self.assertRecordValues( + fake_recs, + [{"multicompany_reporting_currency_id": env_curr.id}] * 5, + ) + + # TEST SYS PARAM CREATION IS REFLECTED ON RECORDS + # Recreate the sys param w/ USD => all records will now have USD + self._set_multicompany_reporting_currency_param(usd.id) + self.assertRecordValues( + fake_recs, + [{"multicompany_reporting_currency_id": usd.id}] * 5, + ) diff --git a/base_multicompany_reporting_currency/views/res_config_settings.xml b/base_multicompany_reporting_currency/views/res_config_settings.xml new file mode 100644 index 000000000..df98296bd --- /dev/null +++ b/base_multicompany_reporting_currency/views/res_config_settings.xml @@ -0,0 +1,53 @@ + + + + res.config.settings + + + + +
        +
        + + + +
        +
        +
        +

        + Changing the multicompany reporting currency may affect lots of records, + and trigger heavy recomputations. Please do not change this value unless + it is absolutely necessary. +

        +
        +
        +
        +
        +
        +
        diff --git a/base_multicompany_reporting_currency/views/res_config_settings_views.xml b/base_multicompany_reporting_currency/views/res_config_settings_views.xml deleted file mode 100644 index 939734be4..000000000 --- a/base_multicompany_reporting_currency/views/res_config_settings_views.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - res.config.settings - - - -
        -
        -
        -
        -
        -
        -