Repository
OCA/intrastat-extrastat · module folder · Try on Runboat
Module version
1.0.0
Category
Reporting
Folder size
0.1 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/intrastat-extrastat
Last tracking update
2026-08-07 09:06:36
Authors
Noviat, Akretion, Odoo Community Association (OCA), brain-tec AG
Maintainers
Noviat, Akretion, Odoo Community Association (OCA), brain-tec AG
Committers
Weblate, OCA-git-bot, oca-ci, alvaroGC-S73
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
intrastat_product, product_harmonized_system_delivery, product_harmonized_system_stock
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.

Code Analysis

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> string='Company' 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…