mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_tax_repartition_line_tax_group_account: black, isort, prettier
This commit is contained in:
@@ -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 <https://github.com/OCA/account-financial-tools/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 <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_tax_repartition_line_tax_group_account%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_tax_repartition_line_tax_group_account%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -68,19 +71,19 @@ Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
-------
|
||||
|
||||
* ForgeFlow
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
------------
|
||||
|
||||
* ForgeFlow <https://www.forgeflow.com>
|
||||
- ForgeFlow <https://www.forgeflow.com>
|
||||
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
- Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
|
||||
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 <https://github.com/OCA/account-financial-tools/tree/13.0/account_tax_repartition_line_tax_group_account>`_ project on GitHub.
|
||||
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/17.0/account_tax_repartition_line_tax_group_account>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["whool"]
|
||||
build-backend = "whool.buildapi"
|
||||
@@ -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'.
|
||||
@@ -0,0 +1,2 @@
|
||||
- ForgeFlow \<<https://www.forgeflow.com>\>
|
||||
- Jordi Ballester Alomar \<<jordi.ballester@forgeflow.com>\>
|
||||
@@ -1,3 +0,0 @@
|
||||
* ForgeFlow <https://www.forgeflow.com>
|
||||
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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'.
|
||||
@@ -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'.
|
||||
@@ -369,12 +369,13 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:ded001a0600f0c04bdbdf29ed1b7fd890bd7e12c4fff336b57bdd711153b8848
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_tax_repartition_line_tax_group_account"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_tax_repartition_line_tax_group_account"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=13.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows to set up an account in tax repartition lines
|
||||
based on a default account set up in the tax group.</p>
|
||||
<p>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.</p>
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/17.0/account_tax_repartition_line_tax_group_account"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_tax_repartition_line_tax_group_account"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows to set up an account in tax repartition lines based
|
||||
on a default account set up in the tax group.</p>
|
||||
<p>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.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
@@ -391,16 +392,18 @@ cases a default account for tax should be proposed for those new taxes.</p>
|
||||
</div>
|
||||
<div class="section" id="configuration">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
||||
<p>Go to the tax group and change the field ‘Default account to use in repartition lines’.</p>
|
||||
<p>Go to the tax group and change the field ‘Default account to use in
|
||||
repartition lines’.</p>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to <em>Invocing/Accounting > Configuration > Taxes</em></li>
|
||||
<li>Create a new tax and make sure that it references the tax group
|
||||
that you have configured with a default account.</li>
|
||||
<li>Upon saving the tax you should see a tax being populated in the sections
|
||||
‘Repartition for invoices’ and ‘Repartition for credit notes’.</li>
|
||||
<li>Create a new tax and make sure that it references the tax group that
|
||||
you have configured with a default account.</li>
|
||||
<li>Upon saving the tax you should see a tax being populated in the
|
||||
sections ‘Repartition for invoices’ and ‘Repartition for credit
|
||||
notes’.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
@@ -408,7 +411,7 @@ that you have configured with a default account.</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_tax_repartition_line_tax_group_account%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_tax_repartition_line_tax_group_account%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -435,7 +438,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<p>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.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_tax_repartition_line_tax_group_account">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/17.0/account_tax_repartition_line_tax_group_account">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,6 @@ class TestAccountTaxRepartitionLineTaxGroupAccount(common.TransactionCase):
|
||||
)
|
||||
|
||||
def test_default_account(self):
|
||||
|
||||
tax = self.env["account.tax"].create(
|
||||
{
|
||||
"name": "sales tax",
|
||||
|
||||
Reference in New Issue
Block a user