Skip to content
Health
47/100
poor
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 18 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 1 migration note 3 models 5 views 0 HTTP endpoints

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

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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.