OdooWiki OCA HUB

Ecotax Management (with Odoo tax)

account_ecotax_tax folder_open OCA/account-fiscal-rule open_in_new
Localization/Account Taxes License: AGPL-3

This module allows to compute the ecotax amounts from Odoo tax mechanism. The advantages compared to the base account_ecotax module is that it allows to : - Manage ecotax amount as included or excluded from the price of the product - Isolate the amount of the ecotax in a specific accounting account (set on the tax)

Then the ecotax amounts are not considered as turnover, which could be good or not depending on your country's legislation or accountant preferences.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Compute ecotaxes (eco-participation fees) through Odoo's standard tax engine, so the ecotax amount can be included in or excluded from the product price and posted to its own accounting account.

This module makes ecotaxes behave like normal Odoo taxes, instead of being handled separately.

  • On a tax, a new "Ecotax" checkbox is available. When ticked, the tax is automatically switched to a code-based formula that multiplies the product's fixed ecotax by the quantity, and it is set to be included in the base amount.
  • On an ecotax classification, you can now link the sale taxes and purchase taxes that represent the ecotax. Only taxes flagged as ecotax and matching the sale or purchase direction can be selected.
  • When you enter an invoice or bill line for a product that has an ecotax classification, the matching ecotax tax is added automatically to the line's taxes, respecting the fiscal position and the company.
  • The line shows a computed ecotax amount per unit and a subtotal ecotax, and the ecotax detail lines are made read-only because they are now driven by the tax computation.
  • On printed invoices, ecotax taxes are hidden from the tax column next to the line, and the separate ecotax total line is removed from the tax totals block, since the ecotax is now part of the standard tax totals.
  • A ready-to-use "EcoTax" sale tax and an "Eco-participation" tax group for France are provided as data.

It touches account.tax, account.ecotax.classification and account.move.line, and changes the invoice report.

Depends on

account_ecotaxaccount_tax_python

Required by other modules

Models and fields (3)
  • account.tax · extends an existing modelis_ecotax (Ecotax)
  • account.move.line · extends an existing modelsubtotal_ecotax, ecotax_amount_unit
  • account.ecotax.classification · extends an existing modelsale_ecotax_ids (Sale EcoTax), purchase_ecotax_ids (Purchase EcoTax)

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/account-fiscal-rule.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Create a tax group named "Ecotaxes". The sequence must be lower than other tax groups.
  • Set the Preceding Subtotal field to "Without Ecotax".
  • Create two taxes named "Fixed Ecotax" and "Weight-Based Ecotax".
  • Check the Ecotax checkbox.
  • Set the correct Python code:
  • For the fixed ecotax:
result = quantity and product.fixed_ecotax * quantity or 0.0
  • For the weight-based ecotax:
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.
  • For VAT taxes, check the Base Affected by Previous Taxes? option.
  • 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.
  • Assign one or more ecotax classifications to a product.
  • The ecotax amount can also be manually overridden on the product.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.