-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16][REF] split account_ecotax into account_ecotax and account_ecotax…
…_tax The goal is to be able to choose between the implementation with and without using the odoo tax mechanism. The advantages of the implementation based on Odoo tax mechanims are : - Possibility to choose if product price include or exclude the ecotax amounts - Isolate the ecotax amounts into a specifc accounting account The disadvantage is that it adds a small layer of complexity and you have to manage the tax configuration and see all those ecotax taxes on your invoices And a major difference which can be good or not depending on your use cases, the ecotax amounts are not in the turnover when using Odoo tax mechanism
- Loading branch information
1 parent
ff0cdc3
commit 8bc3f4a
Showing
28 changed files
with
1,082 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,14 @@ ECOTAXE classification can either a fixed or weight based ecotaxe. | |
A product can have one or serveral ecotaxe classifications. For exemple wooden window blinds equipped with electric motor can | ||
have ecotaxe for wood and ecotaxe for electric motor. | ||
|
||
This module has some limits : | ||
- The ecotax amount is always included in the price of the product. | ||
- The ecotax amount is not isolated in an specific accounting account but is included in the product income account. | ||
|
||
If one of these limits is an issue, you could install the submodule account_ecotax_tax. | ||
This second module lets you manage the ecotax as a tax, so you can configure if you want it to be included or excluded of product price and also configuring an accounting account to isolate it. | ||
The main consequence of this approach is that the ecotax won't be considered in the turnover, since it is considered as a tax. | ||
|
||
This module version add the possibility to manage several ecotaxe classification by product. | ||
A migration script is necessary to update from previous versions. | ||
|
||
|
@@ -68,42 +76,19 @@ product.template ecotaxe_line_product_ids | |
Usage | ||
===== | ||
|
||
1. Create a tax group named **"Ecotaxes"**. The sequence must be lower than other tax groups. | ||
- Set the **Preceding Subtotal** field to **"Without Ecotax"**. | ||
|
||
2. Create two taxes named **"Fixed Ecotax"** and **"Weight-Based Ecotax"**. | ||
- Check the **Ecotax** checkbox. | ||
- Set the correct Python code: | ||
|
||
- For the fixed ecotax: | ||
|
||
.. code-block:: python | ||
result = quantity and product.fixed_ecotax * quantity or 0.0 | ||
- For the weight-based ecotax: | ||
|
||
.. code-block:: python | ||
result = quantity and product.weight_based_ecotax * quantity or 0.0 | ||
- Check the **Included in Base Amount** option. | ||
- The sequence for Ecotax must be lower than the VAT tax. | ||
|
||
3. For VAT taxes, check the **Base Affected by Previous Taxes?** option. | ||
|
||
4. Add an ecotax classification via the menu **Accounting > Configuration > Taxes > Ecotax Classification**. | ||
1. Add an ecotax classification via the menu **Accounting > Configuration > Taxes > Ecotax Classification**. | ||
|
||
- The ecotax classification can be either a fixed ecotax or a weight-based ecotax. | ||
- Ecotax classification information can be used for legal declarations. | ||
- For the fixed ecotax, the ecotax amount is used as a default value, which can be overridden on the product. | ||
- For the weight-based ecotax, define one ecotax by a coefficient applied to the weight (depending on the product's materials). | ||
- Set the appropriate tax in the **Sale Ecotax** field. | ||
|
||
5. Assign one or more ecotax classifications to a product. | ||
2. Assign one or more ecotax classifications to a product. | ||
|
||
- The ecotax amount can also be manually overridden on the product. | ||
|
||
3. Create an invoice with this product | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
|
@@ -126,6 +111,7 @@ Contributors | |
~~~~~~~~~~~~ | ||
|
||
* Mourad EL HADJ MIMOUNE <[email protected]> | ||
* Florian da Costa <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
@@ -143,10 +129,13 @@ promote its widespread use. | |
.. |maintainer-mourad-ehm| image:: https://github.com/mourad-ehm.png?size=40px | ||
:target: https://github.com/mourad-ehm | ||
:alt: mourad-ehm | ||
.. |maintainer-florian-dacosta| image:: https://github.com/florian-dacosta.png?size=40px | ||
:target: https://github.com/florian-dacosta | ||
:alt: florian-dacosta | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-mourad-ehm| | ||
|maintainer-mourad-ehm| |maintainer-florian-dacosta| | ||
|
||
This module is part of the `OCA/account-fiscal-rule <https://github.com/OCA/account-fiscal-rule/tree/16.0/account_ecotax>`_ project on GitHub. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
* Mourad EL HADJ MIMOUNE <[email protected]> | ||
* Florian da Costa <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,12 @@ | ||
1. Create a tax group named **"Ecotaxes"**. The sequence must be lower than other tax groups. | ||
- Set the **Preceding Subtotal** field to **"Without Ecotax"**. | ||
|
||
2. Create two taxes named **"Fixed Ecotax"** and **"Weight-Based Ecotax"**. | ||
- Check the **Ecotax** checkbox. | ||
- Set the correct Python code: | ||
|
||
- For the fixed ecotax: | ||
|
||
.. code-block:: python | ||
result = quantity and product.fixed_ecotax * quantity or 0.0 | ||
- For the weight-based ecotax: | ||
|
||
.. code-block:: python | ||
result = quantity and product.weight_based_ecotax * quantity or 0.0 | ||
- Check the **Included in Base Amount** option. | ||
- The sequence for Ecotax must be lower than the VAT tax. | ||
|
||
3. For VAT taxes, check the **Base Affected by Previous Taxes?** option. | ||
|
||
4. Add an ecotax classification via the menu **Accounting > Configuration > Taxes > Ecotax Classification**. | ||
1. Add an ecotax classification via the menu **Accounting > Configuration > Taxes > Ecotax Classification**. | ||
|
||
- The ecotax classification can be either a fixed ecotax or a weight-based ecotax. | ||
- Ecotax classification information can be used for legal declarations. | ||
- For the fixed ecotax, the ecotax amount is used as a default value, which can be overridden on the product. | ||
- For the weight-based ecotax, define one ecotax by a coefficient applied to the weight (depending on the product's materials). | ||
- Set the appropriate tax in the **Sale Ecotax** field. | ||
|
||
5. Assign one or more ecotax classifications to a product. | ||
2. Assign one or more ecotax classifications to a product. | ||
|
||
- The ecotax amount can also be manually overridden on the product. | ||
|
||
3. Create an invoice with this product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.