Repository
OCA/intrastat-extrastat · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/intrastat-extrastat
Last tracking update
2026-08-07 08:43:05
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
hparfr, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Import Tax Rates per { country, HS Code}


This module allows to set import taxes (import duties and/or tariffs)
on countries of origin and HS codes.

The tax rate is also available on the product.

Current limitations:
- Only support Ad valorem type of import tax (rate is % of the value in currency)
- On product: one origin per product (see product_harmonized_system)
- On product: no support of destination country

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
hs_code_tax_rate_view_search hs.code.tax.rate.search hs.code.tax.rate search New
hs_code_view_form hs.code.form hs.code form Inherits product_harmonized_system.hs_code_view_form
product_template_form_view product.template.form.inherited product.template form Inherits product_harmonized_system.product_template_form_view
view_hs_code_tax_rate_form hs.code.tax.rate.form hs.code.tax.rate form New
view_hs_code_tax_rate_list hs.code.tax.rate.list hs.code.tax.rate list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • tax_rate_ids One2many → hs.code.tax.rate
    comodel_name='hs.code.tax.rate' inverse_name='hs_code_id' string='Tax Rates'
Public methods (0)

No public methods.

New fields (3)
  • hs_code_id Many2one → hs.code
    help='Harmonised System Code. Nomenclature is available from the World Customs Organisation, see http://www.wcoomd.org/.' ondelete='restrict' required=True string='H.S. Code' args: 'hs.code'
  • origin_country_id Many2one → res.country
    help="Country of origin of the product i.e. product 'made in ____'." required=True string='Country of Origin' args: 'res.country'
  • tax_rate Float
    help='Tax rate percentage for this H.S. Code / Country of Origin.' required=True string='Tax Rate %'
Public methods (0)

No public methods.

New fields (3)
  • hs_code_tax_rate Float
    related='hs_code_tax_rate_id.tax_rate'
  • hs_code_tax_rate_id Many2one → hs.code.tax.rate
    compute='_compute_hs_code_tax_rate_id' readonly=True store=True string='H.S. Code Tax Rate Id' args: 'hs.code.tax.rate'
  • hs_code_tax_rate_str Char
    compute='_compute_hs_code_tax_rate_str' string='H.S. Code Tax Rate'
Public methods (0)

No public methods.