From e017bb37f4d585ee0df3913e927647c507eb255f Mon Sep 17 00:00:00 2001 From: David Ramia Date: Sun, 26 Nov 2023 21:20:09 +0100 Subject: [PATCH] [IMP] account_tax_balance: pre-commit auto fixes --- account_tax_balance/README.rst | 42 ++++++++++--------- .../models/account_move_line.py | 1 - account_tax_balance/pyproject.toml | 3 ++ account_tax_balance/readme/CONTRIBUTORS.md | 9 ++++ account_tax_balance/readme/CONTRIBUTORS.rst | 10 ----- .../{DESCRIPTION.rst => DESCRIPTION.md} | 4 +- account_tax_balance/readme/USAGE.md | 5 +++ account_tax_balance/readme/USAGE.rst | 5 --- .../static/description/index.html | 14 +++---- .../tests/test_account_tax_balance.py | 2 +- 10 files changed, 48 insertions(+), 47 deletions(-) create mode 100644 account_tax_balance/pyproject.toml create mode 100644 account_tax_balance/readme/CONTRIBUTORS.md delete mode 100644 account_tax_balance/readme/CONTRIBUTORS.rst rename account_tax_balance/readme/{DESCRIPTION.rst => DESCRIPTION.md} (69%) create mode 100644 account_tax_balance/readme/USAGE.md delete mode 100644 account_tax_balance/readme/USAGE.rst diff --git a/account_tax_balance/README.rst b/account_tax_balance/README.rst index f90b972b..d43e31a0 100644 --- a/account_tax_balance/README.rst +++ b/account_tax_balance/README.rst @@ -17,20 +17,20 @@ Tax Balance :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--reporting-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-reporting/tree/16.0/account_tax_balance + :target: https://github.com/OCA/account-financial-reporting/tree/17.0/account_tax_balance :alt: OCA/account-financial-reporting .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_tax_balance + :target: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_tax_balance :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| This module allows to compute tax balances within a certain date range. -It depends on date_range module and exposes 'compute' methods that can be called by other modules -(like localization ones). +It depends on date_range module and exposes 'compute' methods that can +be called by other modules (like localization ones). **Table of contents** @@ -44,7 +44,9 @@ Accounting --> Reporting --> Taxes Balance Select the company, the date range, the target moves and 'open taxes' -.. figure:: https://raw.githubusercontent.com/account_tax_balance/static/description/tax_balance.png +|image1| + +.. |image1| image:: https://raw.githubusercontent.com/account_tax_balance/static/description/tax_balance.png Bug Tracker =========== @@ -52,7 +54,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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -60,7 +62,7 @@ Credits ======= Authors -~~~~~~~ +------- * Agile Business Group * Therp BV @@ -68,21 +70,21 @@ Authors * ACSONE SA/NV Contributors -~~~~~~~~~~~~ +------------ -* Lorenzo Battistini -* Giovanni Capalbo -* Tecnativa - Antonio Espinosa -* Tecnativa - Pedro M. Baeza -* ACSONE SA/NV - Stéphane Bidoul -* Andrea Stirpe -* Iván Antón -* `Sygel `__: +- Lorenzo Battistini +- Giovanni Capalbo +- Tecnativa - Antonio Espinosa +- Tecnativa - Pedro M. Baeza +- ACSONE SA/NV - Stéphane Bidoul +- Andrea Stirpe +- Iván Antón +- `Sygel `__: - * Valentin Vinagre + - Valentin Vinagre Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -94,6 +96,6 @@ 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/account-financial-reporting `_ project on GitHub. +This module is part of the `OCA/account-financial-reporting `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_tax_balance/models/account_move_line.py b/account_tax_balance/models/account_move_line.py index 294157f0..a2aca7d7 100644 --- a/account_tax_balance/models/account_move_line.py +++ b/account_tax_balance/models/account_move_line.py @@ -5,7 +5,6 @@ from odoo import models class AccountMoveLine(models.Model): - _inherit = "account.move.line" def init(self): diff --git a/account_tax_balance/pyproject.toml b/account_tax_balance/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/account_tax_balance/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_tax_balance/readme/CONTRIBUTORS.md b/account_tax_balance/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..96462072 --- /dev/null +++ b/account_tax_balance/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +- Lorenzo Battistini \<\> +- Giovanni Capalbo \<\> +- Tecnativa - Antonio Espinosa +- Tecnativa - Pedro M. Baeza +- ACSONE SA/NV - Stéphane Bidoul +- Andrea Stirpe \<\> +- Iván Antón \<\> +- [Sygel](https://www.sygel.es): + - Valentin Vinagre diff --git a/account_tax_balance/readme/CONTRIBUTORS.rst b/account_tax_balance/readme/CONTRIBUTORS.rst deleted file mode 100644 index 4e3da90b..00000000 --- a/account_tax_balance/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,10 +0,0 @@ -* Lorenzo Battistini -* Giovanni Capalbo -* Tecnativa - Antonio Espinosa -* Tecnativa - Pedro M. Baeza -* ACSONE SA/NV - Stéphane Bidoul -* Andrea Stirpe -* Iván Antón -* `Sygel `__: - - * Valentin Vinagre diff --git a/account_tax_balance/readme/DESCRIPTION.rst b/account_tax_balance/readme/DESCRIPTION.md similarity index 69% rename from account_tax_balance/readme/DESCRIPTION.rst rename to account_tax_balance/readme/DESCRIPTION.md index afaedddc..c700f2f4 100644 --- a/account_tax_balance/readme/DESCRIPTION.rst +++ b/account_tax_balance/readme/DESCRIPTION.md @@ -1,3 +1,3 @@ This module allows to compute tax balances within a certain date range. -It depends on date_range module and exposes 'compute' methods that can be called by other modules -(like localization ones). +It depends on date_range module and exposes 'compute' methods that can +be called by other modules (like localization ones). diff --git a/account_tax_balance/readme/USAGE.md b/account_tax_balance/readme/USAGE.md new file mode 100644 index 00000000..d043649f --- /dev/null +++ b/account_tax_balance/readme/USAGE.md @@ -0,0 +1,5 @@ +Accounting --\> Reporting --\> Taxes Balance + +Select the company, the date range, the target moves and 'open taxes' + +![](/account_tax_balance/static/description/tax_balance.png) diff --git a/account_tax_balance/readme/USAGE.rst b/account_tax_balance/readme/USAGE.rst deleted file mode 100644 index a17cdfc0..00000000 --- a/account_tax_balance/readme/USAGE.rst +++ /dev/null @@ -1,5 +0,0 @@ -Accounting --> Reporting --> Taxes Balance - -Select the company, the date range, the target moves and 'open taxes' - -.. figure:: /account_tax_balance/static/description/tax_balance.png diff --git a/account_tax_balance/static/description/index.html b/account_tax_balance/static/description/index.html index 3b75c154..89c05ad1 100644 --- a/account_tax_balance/static/description/index.html +++ b/account_tax_balance/static/description/index.html @@ -369,10 +369,10 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:64232d765ed74980509787f10bef8fbcd09566844f7194b4dc53880a8e0a01e6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Mature License: AGPL-3 OCA/account-financial-reporting Translate me on Weblate Try me on Runboat

+

Mature License: AGPL-3 OCA/account-financial-reporting Translate me on Weblate Try me on Runboat

This module allows to compute tax balances within a certain date range. -It depends on date_range module and exposes ‘compute’ methods that can be called by other modules -(like localization ones).

+It depends on date_range module and exposes ‘compute’ methods that can +be called by other modules (like localization ones).

Table of contents

    @@ -390,16 +390,14 @@ It depends on date_range module and exposes ‘compute’ methods that can be ca

    Usage

    Accounting –> Reporting –> Taxes Balance

    Select the company, the date range, the target moves and ‘open taxes’

    -
    -https://raw.githubusercontent.com/account_tax_balance/static/description/tax_balance.png -
    +

    image1

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.

@@ -436,7 +434,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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/account-financial-reporting project on GitHub.

+

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

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

diff --git a/account_tax_balance/tests/test_account_tax_balance.py b/account_tax_balance/tests/test_account_tax_balance.py index e0025f6c..7943015b 100644 --- a/account_tax_balance/tests/test_account_tax_balance.py +++ b/account_tax_balance/tests/test_account_tax_balance.py @@ -107,7 +107,7 @@ class TestAccountTaxBalance(HttpCase): ( "date_start", "=", - "{}-{}-01".format(self.current_year, self.current_month), + f"{self.current_year}-{self.current_month}-01", ) ] )