From 9fe7e2580c7ac44c12a65561afba400516c03f80 Mon Sep 17 00:00:00 2001 From: JasminSForgeFlow Date: Mon, 4 Mar 2024 10:54:35 +0530 Subject: [PATCH] [IMP] account_tax_repartition_line_tax_group_account: black, isort, prettier --- .../README.rst | 45 ++++++++++--------- .../pyproject.toml | 3 ++ .../readme/{CONFIGURE.rst => CONFIGURE.md} | 3 +- .../readme/CONTRIBUTORS.md | 2 + .../readme/CONTRIBUTORS.rst | 3 -- .../readme/DESCRIPTION.md | 7 +++ .../readme/DESCRIPTION.rst | 6 --- .../readme/USAGE.md | 6 +++ .../readme/USAGE.rst | 5 --- .../static/description/index.html | 29 ++++++------ ..._tax_repartition_line_tax_group_account.py | 1 - 11 files changed, 60 insertions(+), 50 deletions(-) create mode 100644 account_tax_repartition_line_tax_group_account/pyproject.toml rename account_tax_repartition_line_tax_group_account/readme/{CONFIGURE.rst => CONFIGURE.md} (72%) create mode 100644 account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.md delete mode 100644 account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.rst create mode 100644 account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.md delete mode 100644 account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.rst create mode 100644 account_tax_repartition_line_tax_group_account/readme/USAGE.md delete mode 100644 account_tax_repartition_line_tax_group_account/readme/USAGE.rst diff --git a/account_tax_repartition_line_tax_group_account/README.rst b/account_tax_repartition_line_tax_group_account/README.rst index f8b7e0a23..1994402fa 100644 --- a/account_tax_repartition_line_tax_group_account/README.rst +++ b/account_tax_repartition_line_tax_group_account/README.rst @@ -17,23 +17,24 @@ Account Tax Repartition Line Tax Group Account :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-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/13.0/account_tax_repartition_line_tax_group_account + :target: https://github.com/OCA/account-financial-tools/tree/17.0/account_tax_repartition_line_tax_group_account :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-13-0/account-financial-tools-13-0-account_tax_repartition_line_tax_group_account + :target: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_tax_repartition_line_tax_group_account :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-tools&target_branch=13.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows to set up an account in tax repartition lines -based on a default account set up in the tax group. +This module allows to set up an account in tax repartition lines based +on a default account set up in the tax group. -Some countries like the US use tax integrations such as Tax Cloud, Tax Jar, etc.. -that create taxes as a result of an API call to those applications. In those -cases a default account for tax should be proposed for those new taxes. +Some countries like the US use tax integrations such as Tax Cloud, Tax +Jar, etc.. that create taxes as a result of an API call to those +applications. In those cases a default account for tax should be +proposed for those new taxes. **Table of contents** @@ -43,16 +44,18 @@ cases a default account for tax should be proposed for those new taxes. Configuration ============= -Go to the tax group and change the field 'Default account to use in repartition lines'. +Go to the tax group and change the field 'Default account to use in +repartition lines'. Usage ===== -#. Go to *Invocing/Accounting > Configuration > Taxes* -#. Create a new tax and make sure that it references the tax group - that you have configured with a default account. -#. Upon saving the tax you should see a tax being populated in the sections - 'Repartition for invoices' and 'Repartition for credit notes'. +1. Go to *Invocing/Accounting > Configuration > Taxes* +2. Create a new tax and make sure that it references the tax group that + you have configured with a default account. +3. Upon saving the tax you should see a tax being populated in the + sections 'Repartition for invoices' and 'Repartition for credit + notes'. Bug Tracker =========== @@ -60,7 +63,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. @@ -68,19 +71,19 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* ForgeFlow +- ForgeFlow - * Jordi Ballester Alomar + - Jordi Ballester Alomar Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -92,6 +95,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-tools `_ project on GitHub. +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_tax_repartition_line_tax_group_account/pyproject.toml b/account_tax_repartition_line_tax_group_account/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_tax_repartition_line_tax_group_account/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_tax_repartition_line_tax_group_account/readme/CONFIGURE.rst b/account_tax_repartition_line_tax_group_account/readme/CONFIGURE.md similarity index 72% rename from account_tax_repartition_line_tax_group_account/readme/CONFIGURE.rst rename to account_tax_repartition_line_tax_group_account/readme/CONFIGURE.md index 20fd035d9..1081c3ed2 100644 --- a/account_tax_repartition_line_tax_group_account/readme/CONFIGURE.rst +++ b/account_tax_repartition_line_tax_group_account/readme/CONFIGURE.md @@ -1 +1,2 @@ -Go to the tax group and change the field 'Default account to use in repartition lines'. +Go to the tax group and change the field 'Default account to use in +repartition lines'. diff --git a/account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.md b/account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..8449b3efa --- /dev/null +++ b/account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- ForgeFlow \<\> + - Jordi Ballester Alomar \<\> diff --git a/account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.rst b/account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.rst deleted file mode 100644 index 5c942494e..000000000 --- a/account_tax_repartition_line_tax_group_account/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,3 +0,0 @@ -* ForgeFlow - - * Jordi Ballester Alomar diff --git a/account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.md b/account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.md new file mode 100644 index 000000000..9c1f58251 --- /dev/null +++ b/account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module allows to set up an account in tax repartition lines based +on a default account set up in the tax group. + +Some countries like the US use tax integrations such as Tax Cloud, Tax +Jar, etc.. that create taxes as a result of an API call to those +applications. In those cases a default account for tax should be +proposed for those new taxes. diff --git a/account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.rst b/account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.rst deleted file mode 100644 index c5e0750c2..000000000 --- a/account_tax_repartition_line_tax_group_account/readme/DESCRIPTION.rst +++ /dev/null @@ -1,6 +0,0 @@ -This module allows to set up an account in tax repartition lines -based on a default account set up in the tax group. - -Some countries like the US use tax integrations such as Tax Cloud, Tax Jar, etc.. -that create taxes as a result of an API call to those applications. In those -cases a default account for tax should be proposed for those new taxes. diff --git a/account_tax_repartition_line_tax_group_account/readme/USAGE.md b/account_tax_repartition_line_tax_group_account/readme/USAGE.md new file mode 100644 index 000000000..0e8bd81ff --- /dev/null +++ b/account_tax_repartition_line_tax_group_account/readme/USAGE.md @@ -0,0 +1,6 @@ +1. Go to *Invocing/Accounting \> Configuration \> Taxes* +2. Create a new tax and make sure that it references the tax group that + you have configured with a default account. +3. Upon saving the tax you should see a tax being populated in the + sections 'Repartition for invoices' and 'Repartition for credit + notes'. diff --git a/account_tax_repartition_line_tax_group_account/readme/USAGE.rst b/account_tax_repartition_line_tax_group_account/readme/USAGE.rst deleted file mode 100644 index f49b1de85..000000000 --- a/account_tax_repartition_line_tax_group_account/readme/USAGE.rst +++ /dev/null @@ -1,5 +0,0 @@ -#. Go to *Invocing/Accounting > Configuration > Taxes* -#. Create a new tax and make sure that it references the tax group - that you have configured with a default account. -#. Upon saving the tax you should see a tax being populated in the sections - 'Repartition for invoices' and 'Repartition for credit notes'. diff --git a/account_tax_repartition_line_tax_group_account/static/description/index.html b/account_tax_repartition_line_tax_group_account/static/description/index.html index a6cd149d5..217dd2f0b 100644 --- a/account_tax_repartition_line_tax_group_account/static/description/index.html +++ b/account_tax_repartition_line_tax_group_account/static/description/index.html @@ -369,12 +369,13 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:ded001a0600f0c04bdbdf29ed1b7fd890bd7e12c4fff336b57bdd711153b8848 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

-

This module allows to set up an account in tax repartition lines -based on a default account set up in the tax group.

-

Some countries like the US use tax integrations such as Tax Cloud, Tax Jar, etc.. -that create taxes as a result of an API call to those applications. In those -cases a default account for tax should be proposed for those new taxes.

+

Beta License: LGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

+

This module allows to set up an account in tax repartition lines based +on a default account set up in the tax group.

+

Some countries like the US use tax integrations such as Tax Cloud, Tax +Jar, etc.. that create taxes as a result of an API call to those +applications. In those cases a default account for tax should be +proposed for those new taxes.

Table of contents

    @@ -391,16 +392,18 @@ cases a default account for tax should be proposed for those new taxes.

Configuration

-

Go to the tax group and change the field ‘Default account to use in repartition lines’.

+

Go to the tax group and change the field ‘Default account to use in +repartition lines’.

Usage

  1. Go to Invocing/Accounting > Configuration > Taxes
  2. -
  3. Create a new tax and make sure that it references the tax group -that you have configured with a default account.
  4. -
  5. Upon saving the tax you should see a tax being populated in the sections -‘Repartition for invoices’ and ‘Repartition for credit notes’.
  6. +
  7. Create a new tax and make sure that it references the tax group that +you have configured with a default account.
  8. +
  9. Upon saving the tax you should see a tax being populated in the +sections ‘Repartition for invoices’ and ‘Repartition for credit +notes’.
@@ -408,7 +411,7 @@ that you have configured with a default account.

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.

@@ -435,7 +438,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-tools project on GitHub.

+

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_tax_repartition_line_tax_group_account/tests/test_account_tax_repartition_line_tax_group_account.py b/account_tax_repartition_line_tax_group_account/tests/test_account_tax_repartition_line_tax_group_account.py index 2fb3e1c76..261e8e7cb 100644 --- a/account_tax_repartition_line_tax_group_account/tests/test_account_tax_repartition_line_tax_group_account.py +++ b/account_tax_repartition_line_tax_group_account/tests/test_account_tax_repartition_line_tax_group_account.py @@ -29,7 +29,6 @@ class TestAccountTaxRepartitionLineTaxGroupAccount(common.TransactionCase): ) def test_default_account(self): - tax = self.env["account.tax"].create( { "name": "sales tax",