TIP: You can type at any time to perform a new search.
Ecotax Management
account_ecotax · OCA/account-fiscal-rule
- Repository
- OCA/account-fiscal-rule · module folder · Try on Runboat
- Module version
- 1.1.1
- Category
- Localization/Account Taxes
- Folder size
- 0.18 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/account-fiscal-rule
- Last tracking update
- 2026-08-07 08:43:06
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Florian da Costa, David Beal, Weblate, OCA-git-bot, Mourad, oca-ci, Francois Poizat
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- account_ecotax_sale
- Description
This module adds ecotax amount on invoice line. furthermore, a total ecotax is added at the footer of each document. To make easy ecotaxe management and to factor the data, ecotaxes are set on products via ECOTAXE classifications. ECOTAXE classification can either be a fixed or weight based ecotax. A product can have one or serveral ecotax classifications. For example, wooden window blinds equipped with electric motor can have ecotax for wood and ecotax 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 ecotax classifications by product. A migration script is necessary to update from previous versions. There is the main change to manage in migration script: renamed field model old field new field account.move.line unit_ecotaxe_amount ecotaxe_amount_unit product.template manual_fixed_ecotaxe force_ecotaxe_amount changed fields model old field new field product.template ecotaxe_classification_id ecotaxe_classification_ids added fields model new field account.move.line ecotaxe_line_ids product.template ecotaxe_line_product_ids
Code Analysis ⓘ
Views touched (21)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
document_tax_totals |
document_tax_totals | ir.ui.view | qweb | Inherits account.document_tax_totals |
ecotax_category_form |
account.ecotax.category | form | New | |
ecotax_category_search |
account.ecotax.category | search | New | |
ecotax_category_tree |
account.ecotax.category | list | New | |
ecotax_classification_form |
account.ecotax.classification | form | New | |
ecotax_classification_search |
account.ecotax.classification | search | New | |
ecotax_classification_tree |
account.ecotax.classification | list | New | |
ecotax_collector_form |
ecotax.collector | form | New | |
ecotax_collector_search |
ecotax.collector | search | New | |
ecotax_collector_tree |
ecotax.collector | list | New | |
ecotax_sector_form |
ecotax.sector | form | New | |
ecotax_sector_search |
ecotax.sector | search | New | |
ecotax_sector_tree |
ecotax.sector | list | New | |
product_normal_form_view |
product.product | form | Inherits product.product_normal_form_view | |
product_search_form_view |
product.product | form | Inherits product.product_search_form_view | |
product_template_form_view |
ecotax.base.product.template.form | product.template | form | Inherits account.product_template_form_view |
product_template_search_view |
product.template | search | Inherits product.product_template_search_view | |
product_variant_easy_edit_view |
product.product | Inherits product.product_variant_easy_edit_view | ||
report_invoice_document |
report_invoice_document | ir.ui.view | qweb | Inherits account.report_invoice_document |
view_move_form_inherit |
account.move | form | Inherits account.view_move_form | |
view_move_line_ecotax_form |
account.move.line.ecotax.form | account.move.line | form | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (11)
New fields (4)
-
activeBooleandefault=True -
codeCharrequired=True -
descriptionChar -
nameCharrequired=True
No public methods.
New fields (14)
-
activeBooleandefault=True -
categ_idMany2one → account.ecotax.categorycomodel_name='account.ecotax.category'string='Category' -
codeChar -
collector_idMany2one → ecotax.collectorcomodel_name='ecotax.collector'string='Ecotax collector' -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>help='Specify a company if you want to define this Ecotax Classification only for specific company. Otherwise, this Fiscal Classification will be available for all companies.' -
default_fixed_ecotaxFloatcompute='_compute_ecotax_vals'digits='Ecotax'help='Default fixed ecotax amount.'readonly=Falsestore=True -
ecotax_coefFloatcompute='_compute_ecotax_vals'digits='Ecotax'readonly=Falsestore=True -
ecotax_typeSelectionhelp='If ecotax is weight based,the ecotax coef must take into account\nthe weight unit of measure (kg by default)'required=True args: [('fixed', 'Fixed'), ('weight_based', 'Weight based')] -
intrastat_codeChar -
nameCharrequired=True -
product_statusSelectionrequired=True args: [('M', 'Domestic'), ('P', 'Professional')] -
scale_codeChar -
sector_idMany2one → ecotax.sectorcomodel_name='ecotax.sector'string='Ecotax sector' -
supplier_statusSelectionhelp='MAN ==> Manufacturer: is locally established in the country, and manufactures goods which are subject to ecotaxes\nunder their own name and brand, or designs such goods, subcontracts the manufacturing and then sells them under their own name and brand\nRES ==> Reseller, under their own brand: is locally established in the country, and sells under their own name or brand goods subject to ecotax manufactured by others\nINT ==> Introducer: is locally established and sells on the local market goods subject to ecotax coming from other countries of the European Union\nIMP ==> Importer: is established in France, and sells on the local market goods subject to ecotax coming from countries outsidethe European Union\nREM ==> Remote vendor: is established in another country of the European Union or outside the EU, and remotely sells good subject to ecotaxes to customers in the country'required=True args: [('MAN', 'Manufacturer'), ('RES', 'Reseller, under their own brand'), ('INT', 'Introducer'), ('IMP', 'Importer'), ('REM', 'Remote vendor')]
No public methods.
New fields (1)
-
amount_ecotaxFloatcompute='_compute_ecotax'digits='Ecotax'store=Truestring='Included Ecotax'
No public methods.
New fields (3)
-
ecotax_amount_unitFloatcompute='_compute_ecotax'digits='Ecotax'store=Truestring='Ecotax Unit' -
ecotax_line_idsOne2many → account.move.line.ecotaxcompute='_compute_ecotax_line_ids'copy=Truereadonly=Falsestore=Truestring='Ecotax Lines' args: 'account.move.line.ecotax', 'account_move_line_id' -
subtotal_ecotaxFloatcompute='_compute_ecotax'digits='Ecotax'store=Truestring='Ecotax'
-
edit_ecotax_lines(self)
New fields (4)
-
account_move_line_idMany2one → account.move.lineauto_join=Truecomodel_name='account.move.line'index=Trueondelete='cascade'readonly=Truerequired=Truestring='Journal Item' -
currency_idMany2onereadonly=Truerelated='account_move_line_id.currency_id'store=True -
product_idMany2one → product.productreadonly=Truerelated='account_move_line_id.product_id'store=True args: 'product.product' -
quantityFloatreadonly=Truerelated='account_move_line_id.quantity'store=True
No public methods.
New fields (3)
-
activeBooleandefault=True -
nameCharrequired=True -
partner_idMany2one → res.partnerrequired=False args: 'res.partner'
No public methods.
New fields (7)
-
amount_totalFloatcompute='_compute_ecotax'digits='Ecotax'help='Ecotax Amount total computed from Classification or forced ecotax amount'store=True -
amount_unitFloatcompute='_compute_ecotax'digits='Ecotax'help='Ecotax Amount computed from Classification or Manual ecotax'store=True -
classification_idMany2one → account.ecotax.classificationondelete='restrict' args: 'account.ecotax.classification' -
currency_idMany2one → res.currencyargs: 'res.currency' -
force_amount_unitFloatdigits='Ecotax'help='Force ecotax.\nAllow to add a subtitle to the default Ecotax Classification' -
product_idMany2one → product.productreadonly=True args: 'product.product' -
quantityFloatdigits='Product Unit of Measure'readonly=True
No public methods.
New fields (7)
-
amountFloatcompute='_compute_ecotax'digits='Ecotax'help='Ecotax Amount computed form Classification or forced ecotax amount'store=True -
classification_idMany2one → account.ecotax.classificationargs: 'account.ecotax.classification' -
currency_idMany2onereadonly=Truerelated='product_tmpl_id.currency_id' -
display_nameCharcompute='_compute_display_name' -
force_amountFloatdigits='Ecotax'help='Force ecotax amount.\nAllow to substitute default Ecotax Classification' -
product_idMany2one → product.productreadonly=True args: 'product.product' -
product_tmpl_idMany2one → product.templatereadonly=Truestring='Product Template' args: 'product.template'
No public methods.
New fields (3)
-
activeBooleandefault=True -
descriptionChar -
nameCharrequired=True
No public methods.
New fields (5)
-
additional_ecotax_line_product_idsOne2many → ecotax.line.productcopy=Truedomain="[('id', 'not in', ecotax_line_product_ids)]"string='Additional Ecotax Lines' args: 'ecotax.line.product', 'product_id' -
all_ecotax_line_product_idsOne2many → ecotax.line.productcompute='_compute_all_ecotax_line_product_ids'help='Contain all ecotaxs classification defined in product templateand the additionnal.\necotaxs defined in product variant. For more detailssee the product variant accounting tab'search='_search_all_ecotax_line_product_ids'string='All Ecotax Lines' args: 'ecotax.line.product' -
ecotax_amountFloatcompute='_compute_product_ecotax'digits='Ecotax'help='Ecotax Amount computed form all ecotax line classification'store=True -
fixed_ecotaxFloatcompute='_compute_product_ecotax'help='Fixed ecotax of the Ecotax Classification'store=True -
weight_based_ecotaxFloatcompute='_compute_product_ecotax'help='Ecotax value :\nproduct weight * ecotax coef of Ecotax Classification'store=True
No public methods.
New fields (4)
-
ecotax_amountFloatcompute='_compute_ecotax'digits='Ecotax'help='Ecotax Amount computed from Classification'store=True -
ecotax_line_product_idsOne2many → ecotax.line.productcopy=Truestring='Ecotax Lines' args: 'ecotax.line.product', 'product_tmpl_id' -
fixed_ecotaxFloatcompute='_compute_ecotax'help='Fixed ecotax of the Ecotax Classification'store=True -
weight_based_ecotaxFloatcompute='_compute_ecotax'help='Ecotax value :\nproduct weight * ecotax coef of Ecotax Classification'store=True
No public methods.
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 105 days ago
- Last activity
- 58 days ago
- Repository
- OCA/account-fiscal-rule
- Pull request
- [19.0][MIG] account_ecotax: Migration to 19.0 (#589)