Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 13 Odoo series since 8.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.11 MB
Module directory on disk
Code analysis 0 migration notes 4 models 6 views 0 HTTP endpoints

Description

This module contains the objects for Harmonised System Codes (H.S. codes). The full nomenclature is available from the World Customs Organisation <http://www.wcoomd.org/>. These codes are usually required on the Proforma invoices that are attached to the packages that are shipped abroad.

This module also handles the local/national extensions to the H.S. codes. The import of the full nomenclature is not provided by this module; it should be provided by localization modules.

You will also be able to configure the country of origin of a product, which is often required on the proforma invoice for the customs.

This module should be usefull for all companies that export physical goods abroad. This module is also used by the Intrastat modules for the European Union, cf the intrastat_product module.

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
- uom
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 6

XML IDNameModelTypeStatus
hs_code_view_form hs.code.form hs.code form New
hs_code_view_search hs.code.search hs.code search New
hs_code_view_tree hs.code.list hs.code list New
product_category_form_view hs_code.product.category.form product.category form Inherits product.product_category_form_view
product_template_form_view hs_code.product.template.form product.template form Inherits product.product_template_form_view
product_template_search_view product.template search Inherits product.product_template_search_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (10)
  • active Boolean
    default=True
  • company_id Many2one → res.company
    default=<expr> args: 'res.company'
  • description Char
    help='Short text description of the H.S. Code' translate=True
  • hs_code Char
    compute='_compute_hs_code' help='Harmonized System code (6 digits). Full list is available from the World Customs Organisation, see http://www.wcoomd.org' precompute=True store=True string='H.S. Code'
  • local_code Char
    help='Code used for the national Import/Export declaration. The national code starts with the 6 digits of the H.S. and often has a few additional digits to extend the H.S. code.' required=True
  • long_description Text
    help='Detailed text description of the H.S. Code. This can be, for example, the official description of this code as defined in the Harmonized System nomenclature.' string='Detailed Description' translate=True
  • product_categ_count Integer
    compute='_compute_product_categ_count'
  • product_categ_ids One2many → product.category
    comodel_name='product.category' inverse_name='hs_code_id' readonly=True string='Product Categories'
  • product_tmpl_count Integer
    compute='_compute_product_tmpl_count'
  • product_tmpl_ids One2many → product.template
    comodel_name='product.template' inverse_name='hs_code_id' readonly=True string='Products'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (1)
  • hs_code_id Many2one → hs.code
    help='Harmonised System Code. If this code is not set on the product itself, it will be read here, on the related product category.' ondelete='restrict' string='H.S. Code' args: 'hs.code'
Public methods (1)
  • get_hs_code_recursively(self)

New fields (0)

No new fields.

Public methods (1)
  • get_hs_code_recursively(self)

New fields (2)
  • hs_code_id Many2one → hs.code
    help='Harmonised System Code. Nomenclature is available from the World Customs Organisation, see http://www.wcoomd.org/. You can leave this field empty and configure the H.S. code on the product category.' ondelete='restrict' string='H.S. Code' args: 'hs.code'
  • origin_country_id Many2one → res.country
    comodel_name='res.country' help="Country of origin of the product i.e. product 'made in ____'." string='Country of Origin'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…