From 7da328d766c4e04847dda6a98dbbf17c46270090 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 24 Oct 2022 13:41:48 +0200 Subject: [PATCH 1/7] [ADD] account_chart_update_l10n_eu_oss --- account_chart_update_l10n_eu_oss/README.rst | 82 ++++ account_chart_update_l10n_eu_oss/__init__.py | 1 + .../__manifest__.py | 18 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 2 + .../static/description/index.html | 422 ++++++++++++++++++ .../wizard/__init__.py | 1 + .../wizard/wizard_chart_update.py | 13 + 8 files changed, 540 insertions(+) create mode 100644 account_chart_update_l10n_eu_oss/README.rst create mode 100644 account_chart_update_l10n_eu_oss/__init__.py create mode 100644 account_chart_update_l10n_eu_oss/__manifest__.py create mode 100644 account_chart_update_l10n_eu_oss/readme/CONTRIBUTORS.rst create mode 100644 account_chart_update_l10n_eu_oss/readme/DESCRIPTION.rst create mode 100644 account_chart_update_l10n_eu_oss/static/description/index.html create mode 100644 account_chart_update_l10n_eu_oss/wizard/__init__.py create mode 100644 account_chart_update_l10n_eu_oss/wizard/wizard_chart_update.py diff --git a/account_chart_update_l10n_eu_oss/README.rst b/account_chart_update_l10n_eu_oss/README.rst new file mode 100644 index 00000000000..fb85cb8292f --- /dev/null +++ b/account_chart_update_l10n_eu_oss/README.rst @@ -0,0 +1,82 @@ +========================= +Account Chart update OSS +========================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Faccount--financial--tools-lightgray.png?logo=github + :target: https://github.com/OCA/account-financial-tools/tree/15.0/account_chart_update_l10n_eu_oss + :alt: OCA/account-financial-tools +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-account_chart_update_l10n_eu_oss + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/92/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Glue module for account chart update and OSS. It makes the wizard ignore OSS +taxes when updating the CoA. + +**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 +~~~~~~~ + +* ForgeFlow + +Contributors +~~~~~~~~~~~~ + +* Lois Rilo + +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. + +.. |maintainer-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px + :target: https://github.com/LoisRForgeFlow + :alt: LoisRForgeFlow + +Current `maintainer `__: + +|maintainer-LoisRForgeFlow| + +This module is part of the `OCA/account-financial-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_chart_update_l10n_eu_oss/__init__.py b/account_chart_update_l10n_eu_oss/__init__.py new file mode 100644 index 00000000000..40272379f72 --- /dev/null +++ b/account_chart_update_l10n_eu_oss/__init__.py @@ -0,0 +1 @@ +from . import wizard diff --git a/account_chart_update_l10n_eu_oss/__manifest__.py b/account_chart_update_l10n_eu_oss/__manifest__.py new file mode 100644 index 00000000000..ffc6a49e2e1 --- /dev/null +++ b/account_chart_update_l10n_eu_oss/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Chart update OSS ", + "version": "15.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "maintainers": ["LoisRForgeFlow"], + "website": "https://github.com/OCA/account-financial-tools", + "category": "Accounting", + "license": "AGPL-3", + "depends": [ + "account_chart_update", + "l10n_eu_oss", + ], + "installable": True, + "auto_install": True, +} diff --git a/account_chart_update_l10n_eu_oss/readme/CONTRIBUTORS.rst b/account_chart_update_l10n_eu_oss/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..77dfbe89e97 --- /dev/null +++ b/account_chart_update_l10n_eu_oss/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Lois Rilo diff --git a/account_chart_update_l10n_eu_oss/readme/DESCRIPTION.rst b/account_chart_update_l10n_eu_oss/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..cb81392e78e --- /dev/null +++ b/account_chart_update_l10n_eu_oss/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Glue module for account chart update and OSS. It makes the wizard ignore OSS +taxes when updating the CoA. diff --git a/account_chart_update_l10n_eu_oss/static/description/index.html b/account_chart_update_l10n_eu_oss/static/description/index.html new file mode 100644 index 00000000000..4f21573e4f5 --- /dev/null +++ b/account_chart_update_l10n_eu_oss/static/description/index.html @@ -0,0 +1,422 @@ + + + + + + +Account Chart update OSS + + + +
+

Account Chart update OSS

+ + +

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runbot

+

Glue module for account chart update and OSS. It makes the wizard ignore OSS +taxes when updating the CoA.

+

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

+
    +
  • ForgeFlow
  • +
+
+ +
+

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.

+

Current maintainer:

+

LoisRForgeFlow

+

This module is part of the OCA/account-financial-tools project on GitHub.

+

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

+
+
+
+ + diff --git a/account_chart_update_l10n_eu_oss/wizard/__init__.py b/account_chart_update_l10n_eu_oss/wizard/__init__.py new file mode 100644 index 00000000000..fbd95d57bd3 --- /dev/null +++ b/account_chart_update_l10n_eu_oss/wizard/__init__.py @@ -0,0 +1 @@ +from . import wizard_chart_update diff --git a/account_chart_update_l10n_eu_oss/wizard/wizard_chart_update.py b/account_chart_update_l10n_eu_oss/wizard/wizard_chart_update.py new file mode 100644 index 00000000000..81274860b2b --- /dev/null +++ b/account_chart_update_l10n_eu_oss/wizard/wizard_chart_update.py @@ -0,0 +1,13 @@ +# Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class WizardUpdateChartsAccounts(models.TransientModel): + _inherit = "wizard.update.charts.accounts" + + def _domain_taxes_to_deactivate(self, found_taxes_ids): + domain = super()._domain_taxes_to_deactivate(found_taxes_ids) + domain.append(("tax_group_id.name", "not like", "OSS%%")) + return domain From 70ae775eb01c0e464325d49fe4da0e770ab1f810 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 2 Nov 2022 17:35:38 +0000 Subject: [PATCH 2/7] [UPD] Update account_chart_update_l10n_eu_oss.pot --- .../i18n/account_chart_update_l10n_eu_oss.pot | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 account_chart_update_l10n_eu_oss/i18n/account_chart_update_l10n_eu_oss.pot diff --git a/account_chart_update_l10n_eu_oss/i18n/account_chart_update_l10n_eu_oss.pot b/account_chart_update_l10n_eu_oss/i18n/account_chart_update_l10n_eu_oss.pot new file mode 100644 index 00000000000..8eac7534663 --- /dev/null +++ b/account_chart_update_l10n_eu_oss/i18n/account_chart_update_l10n_eu_oss.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_chart_update_l10n_eu_oss +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \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: account_chart_update_l10n_eu_oss +#: model:ir.model,name:account_chart_update_l10n_eu_oss.model_wizard_update_charts_accounts +msgid "Wizard Update Charts Accounts" +msgstr "" From a89eca89615705cb73fb13652fa683a9dd7924be Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 2 Nov 2022 17:39:39 +0000 Subject: [PATCH 3/7] [UPD] README.rst --- account_chart_update_l10n_eu_oss/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_chart_update_l10n_eu_oss/static/description/index.html b/account_chart_update_l10n_eu_oss/static/description/index.html index 4f21573e4f5..4aea4e28093 100644 --- a/account_chart_update_l10n_eu_oss/static/description/index.html +++ b/account_chart_update_l10n_eu_oss/static/description/index.html @@ -3,7 +3,7 @@ - + Account Chart update OSS